One of the key challenges in catalysis research is to understand how catalysts’ structure and function relate to each other. Regardless of the type of catalyst in question, structure and function are dynamic with a strong dependence on the localized reaction conditions such as temperature, pressure, and gas composition just above the catalyst surface. Now, researchers developed a new event-averaging-based method employing time-resolved ambient pressure photoelectron spectroscopy to map catalyst structure and local gas environment simultaneously while reaction conditions change rapidly.