Atomistic chemical inhomogeneities are anticipated to induce dissimilarities in surface potentials, which control corrosion initiation of alloys at the atomic scale. Precise understanding of corrosion is therefore hampered by lack of definite information describing how atomistic heterogeneities regulate the process. Here, using high-angle annular dark-field (HAADF) scanning transmission electron microscope (STEM) and electron energy loss spectroscopy (EELS) techniques, we systematically analyzed the Al20Cu2Mn3 second phase of 2024Al and successfully observed that atomic-scale segregation of Cu at defect sites induced preferential dissolution of the adjacent zones. We define an “atomic-scale galvanic cell”, composed of zones rich in Cu and its surrounding matrix. Our findings provide vital information linking atomic-scale microstructure and pitting mechanism, particularly for Al-Cu-Mg alloys. The resolution achieved also enables understanding of dealloying mechanisms and further streamlines our comprehension of the concept of general corrosion.