Provided is a cosmetic composition comprising, in a cosmetically acceptable medium, at least one film-forming elastomeric, anionic polyurethane, and at least one cationic polymer, as well as a method for the styling of the hair comprising applying this composition to the hair.