The present invention concerns a composition for the permanent shaping of human hair comprising a copolymer of vinylpyrrolidone and quaternized vinylimidazole at a concentration in the range of 0.1 to 2.5% by weight calculated to total composition and process for permanent shaping human hair with the said compositions.