Hair cleaning agent comprises 5-50 wt.% of surfactant, 0.01-5 wt.% of one or more organic acid(s) or its water-soluble salts as preservative, 0.1-5 wt.% of at least one homo- or copolymers of acrylic acid and/or methacrylic acid or its esters, which is cross-linked with allyl ethers of sucrose and/or allyl ethers of pentaerythrite.