The present invention relates to a cosmetic composition comprising hydrophobic silica aerogel particles and at least one polymer bearing a sugar unit. The invention also relates to a cosmetic treatment method using said composition, especially a hair treatment method that makes it possible in particular to delay or even prevent regreasing of the hair and/or of the scalp.