The present invention is related to an aqueous composition comprising an alkalizing agent and a cationic polymer. The inventors of the present invention have surprisingly found out that a composition comprising at least one alkalizing agent and a cationic polymer consisting of a copolymer of vinylpyrrolidone and vinylimidazole and a homopolymer of dimethyl dially ammonium chloride colors and/or permanently shapes hair excellently and improves hair shine, combability and manageability and especially hair treated with such composition has less flyaway. Additionally it has been observed that hair colored and/or permanently shaped more homogeneously from root to tips. The object of the present invention is a composition for hair comprising at least one alkalizing agent and a cationic polymer consisting of a copolymer of vinylpyrrolidone and vinylimidazole and a homopolymer of dimethyl dially ammonium chloride. Cationic charge density of the polymer is preferably between 3 and 4 mEq/g and particularly 3.7 mEq/g at pH 7.0.