At present, it is very important to create new types of mirrors, nonlinear light frequency transformers and optical filters with controlled optical properties. In this connection, it is of great interest to study photonic crystals. Their dielectric permittivity varies periodically in space with a period permitting Bragg diffraction of light. In this paper, we have investigated the optical properties of mesoporous three-dimensional (3D) opal-type and one-dimensional (1D) anodic alumina photonic crystals, filled with different dielectrics, ferroelectrics and piezoelectrics. We have compared the optical properties of initial mesoporous photonic crystals and filled with different substances. The possibility of mesoporous photonic crystals using selective narrow-band light filters in Raman scattering experiments and nonlinear mirrors has been analyzed. The electromagnetic field enhancing in the case of exciting light frequency close to the stop band edges has been established. The optical harmonics and subharmonics generation in mesoporous crystals, filled with ferroelectrics and piezoelectrics was proposed.