The invention relates to compositions and their use for conditioning keratin fibres, in particular the hair. The composition contains in a cosmetically acceptable medium, one or more volatile linear alkanes, and one or more nonionic associative polymers.