A protocol is described for preparing a simple model ecosystem that recreates the methane-oxygen counter gradient found in the natural habitat of aerobic methane-oxidizing bacteria, enabling the study of their physiology in a spatially resolved context. Modifications to common biochemical assays for use with the agarose-based model ecosystem are also described.