The invention relates to a composition comprising: (a) one or more alkoxysilanes bearing solubilizing function(s) of formula R1Si(OR2)z(R3)x(OH)y, and/or hydrolysis products thereof and/or oligomers thereof, (b) one or more alkylalkoxysilanes of formula (R4)mSi(OR5)n and/or hydrolysis products thereof and/or oligomers thereof, and (c) one or more fatty substances. The invention also relates to the use of said composition for shaping and/or conditioning the hair.