A cosmetic agent particularly useful for the styling of keratin fibers such as human hair is disclosed. The cosmetic agent of the present invention contains a unique combination of specific amphoteric polymers with an amphiphilic anionic polymer that imparts optimized properties to the agent without additional active ingredients. Styling agents containing this inventive polymer combination provide a very high degree of hold and moisture resistance to keratinous fibers without compromising flexibility.