The present invention provides a composition containing component (A): a compound represented by the formula (1) wherein each symbol is as described in the DESCRIPTION, or a salt thereof and component (B): a cationic surfactant, which is superior in the usability during rinsing, which makes the hair surface after treatment smooth and free of dry feeling, provides a uniform touch feeling from the root of the hair to the tip thereof, and can be utilized as an aqueous cosmetic.