This work studies the influences of surface structure on hydrophobicity, and the transmittance of each structure was also taken into account. We investigated three kinds of structures in this work, namely surfaces with nanometer scale, micrometer scale, and hierarchical structures (composed of micro- and nanostructure). The nanostructures and the hierarchical structures on glass surfaces were developed by assembled polystyrene nanospheres; the microstructures on PDMS substrates with different feature sizes were fabricated by soft lithography method. To create a surface with micrometer scale, circular pillars were chosen as the patterns by changing interpillar distance and the height of micropillars. Our results show that as the surface roughness enhanced, the formation of air package between liquid and solid interface contributes to better hydrophobicity. After the surface roughness is enhanced, the surface hydrophobicity increased, whereas the transmittance decreased. A superhydrophobic and nearly transparent surface is obtained on microstructured PDMS surface with water contact angle 153° and transmittance about 90%.