A hair cosmetic comprising the following ingredients (A) and (B): (A) a cationic polymer having a charge density of 5.0 to 7.0 meq/g and (B) an anionic polysaccharide derivative wherein a part of the H atoms of the OH group of a polysaccharide compound having the constituent unit described below are substituted with a - (CH 2 ) m COO - group (m is an integer of 1 to 5) at an average substitution degree of 0.5 to 2.0 per constituent unit, and wherein optionally a part of the H atoms of the remaining -OH groups are substituted with C 1-40 alkyl groups and/or alkylene groups, wherein the viscosity of the ingredient (B) in a 2 mass% aqueous solution (25°C) is 0.5 to 800 mPa·s wherein R' represents a C 2-4 alkylene group optionally substituted with an -OH group, and n represents a number by which the average number of added moles of R'O per constituent unit is 0 to 10.