Hydrophobic and self-cleaning surfaces have wide applications, including glasses, camera covers, windows, solar panels and high-end finished surfaces. Many existing hydrophobic coatings either have low transmittance, making them unsuitable for high light transmission applications, or are insufficiently hydrophobic. The present invention concerns high-quality hypertransparent superhydrophobic coatings, for example SiO.sub.2-based, with double-roughness microstructure that were deposited on to, for example, glass substrates using, for example, the combustion chemical vapor deposition (CCVD) technique. Embodiments of the invention include coatings with a contact angle of higher than 165.degree., a rolling angle of <5.degree., a haze of <0.5%, and an increased transmittance by 2% higher and a reflectance of 2% lower than bare glass. The double roughness can improve wear resistance. Additionally, other surface chemistries can be applied to yield hydrophilic, oliophobic, or oliophobic surfaces.