Reactivity in confinement is central to a wide range of applications and systems, yet it is notoriously difficult to probe reactions in confined spaces in real time. Using a modified electrochemical surface forces apparatus (EC-SFA) on confined metallic surfaces, we observe in situ nano- to microscale dissolution and pit formation in well-defined geometries in environments relevant to corrosion processes. Read more in PNAS.