Abstract A sol-gel derived antireflection (AR) coating by surfactant templating method is presented. The spin coating process was used to deposit SiO2 thin films on glass. The pore size and the pore volume of the film were controlled by the size and the volume of the template (i.e. Tween 80). It was found from this research that the transmittance was increased from 91.7% to above 99.0% either by a single-layer or by a double-layer porous SiO2 antireflection coating, on both sides of the glass pane at a specific wavelength.