obtaining silicon-based photonic-structures in the ultraviolet range would expand the wavelength bandwidth of silicon technology, where it is normally forbidden. Herein, we fabricated porous silicon microcavities by electrochemical etching of alternating high and low refraction index layers; and were carefully subjected to two stages of dry oxidation at 350 °C for 30 minutes and 900 °C, with different oxidation times. in this way, we obtained oxidized porous silicon that induces a shift of a localized mode in the ultraviolet region. the presence of Si-o-Si bonds was made clear by ftiR absorbance spectra. High-quality oxidized microcavities were shown by SeM, where their mechanical stability was clearly visible. We used an effective medium model to predict the refractive index and optical properties of the microcavities. the model can use either two or three components (Si, Sio 2 , and air). the latter predicts that the microcavities are made almost completely of Sio 2 , implying less photon losses in the structure. the theoretical photonic-bandgap structure and localized photonic mode location showed that the experimental spectral peaks within the UV photonic bandgap are indeed localized modes. these results support that our oxidation process is very advantageous to obtain complex photonic structures in the UV region.