13C nuclear magnetic resonance (NMR) spectroscopy shows that high-resolution spectra of isotopically enriched CH4 and CO2 can be obtained for a millimeter-sized natural shale sample under in situ conditions relevant to petroleum reservoirs (T = 323 K, and Pfluid = 90 bar) using magic angle spinning. These results show for the first time that this technique has the potential to provide otherwise unobtainable, species-specific structural and dynamical insight into the pore systems of shales and other tight reservoir and source rocks and can thus help guide the design of the methods used in enhanced petroleum production. The NMR results show that CH4 and CO2 readily displace each other in the nanoporosity (10 nm) pore spaces of the shale studi...