In recent years, hydrogels have been demonstrated as simple and cheap additives to improve the optical properties and material stability of organometal halide perovskites (OHPs), with most research centered on the use of hydrophilic, petrochemical-derived polymers. Here, we investigate the role of a peptide hydrogel in passivating defect sites and improving the stability of methylammonium lead iodide (MAPI, CH 3 NH 3 PbI 3 ) using closely controlled, in situ X-ray photoelectron spectroscopy (XPS) techniques under realistic pressures. Optical measurements reveal that a reduction in the density of defect sites is achieved by incorporating peptide into the precursor solution during the conventional one-step MAPI fabrication approach. Increasing the concentration of peptide is shown to reduce the MAPI crystallite size, attributed to a reduction in hydrogel pore size, and a concomitant increase in the optical bandgap is shown to be consistent with that expected due to quantum size effects. Encapsulation of MAPI crystallites is further evidenced by XPS quantification, which demonstrates that the surface stoichiometry differs little from the expected nominal values for a homogeneously mixed system. In situ XPS demonstrates that thermally induced degradation in a vacuum is reduced by the inclusion of peptide, and near-ambient pressure XPS (NAP-XPS) reveals that this enhancement is partially retained at 9 mbar water vapor pressure, with a reduced loss of methylammonium (MA + ) from the surface following heating achieved using 3 wt % peptide loading. A maximum power conversion efficiency (PCE) of 16.6% was achieved with a peptide loading of 3 wt %, compared with 15.9% from a 0 wt % device, the former maintaining 81% of its best efficiency over 480 h storage at 35% relative humidity (RH), compared with 48% maintained by a 0 wt % device.