The oxidation and reduction of Ru(0001) surfaces at the confined space between two-dimensional nanoporous silica frameworks and Ru(0001) have been investigated using synchrotron-based ambient pressure X-ray photoelectron spectroscopy (AP-XPS). The porous nature of the frameworks and the weak interaction between the silica and the ruthenium substrate allow oxygen and hydrogen molecules to go through the nanopores and react with the metal at the interface between the silica framework and the metal surface. In this work, three types of two-dimensional silica frameworks have been used to study their influence in the oxidation and reduction of the ruthenium surface at elevated pressures and temperatures. These frameworks are bilayer silica (0.5 nm thick), bilayer aluminosilicate (0.5 nm thick), and zeolite MFI nanosheets (3 nm thick). It is found that the silica frameworks stay essentially intact under these conditions, but they strongly affect the oxidation of ruthenium, with the 0.5 nm thick aluminosilicate bilayer completely inhibiting the oxidation. The latter is believed to be related to the lower chemisorbed oxygen content arising from electrostatic interactions between the negatively charged aluminosilicate framework and the Ru(0001) substrate.