The results of the patterned microstructures fabrication through electrochemical anodizing, sol-gel synthesis, photolithography and chemical etching are presented. The continuous xerogel films were used as a protective mask. They are good alternative to metal in photolithography. Perspectives of application of these structures in planar optoelectronics are discussed