Disclosed is a hair styling method wherein a hair cosmetic containing a component (A) is applied to the hair, and the shape of the hair style is maintained by cooling the hair below 50°C after the hair was styled at 50°C or higher. The component (A) is an organopolysiloxane formed as a poly(N-acyl-alkylene-imine) segment (b) comprising a repeating unit (1) binds, via an alkylene group containing hetero atoms, to at least two Si atoms of an organopolysiloxane segment (a) constituting the main chain, wherein the number-average molecular weight of the poly(N-acyl-alkylene-imine) segment (b) is 1,200 to 5,500, the mass ratio of the organopolysiloxane segment (a) constituting the main chain and the poly(N-acyl-alkylene-imine) segment (b) is 35/65 to 60/40, the weight-average molecular weight of the organopolysiloxane segment between the neighboring poly(N-acyl-alkylene-imine) segments (b) is 1,300 to 5,500, and the weight-average molecular weight of the organopolysiloxane segment (a) constituting the main chain is 7,000 and 100,000.