The invention relates to a process for the preparation of self-cleaning wash-resistant and air-permeable superhydrophobic and oleophobic cotton textiles. The coating is applied to the surface of the cotton textile and results in sliding angles for water that are lower than 10 degrees, even after 10 washings. The coatings consist of differently sized premade siloxane particles and particles grown in-situ in the presence of cotton textiles. The in-situ preparation of siloxane particles provides a bi-hierarchical surface roughness and a good connection between the siloxane particles and the textile, which is further strengthened by the use of fluorinated alkoxy silanes. The combination of the proposed solution enables improved wash-resistant properties for the coatings.