Corrosion is a galvanic process that can occur in both single metals and when two dissimilar metals are in contact. In a single metal, localized differences in the material can cause one region to act as the anode and another as the cathode. Electrons flow between these regions through the metal. For iron, the anodic reaction produces Fe2+ ions while the cathodic reaction typically reduces oxygen to hydroxide ions. These ions then react to form rust. When two metals contact, they form a corrosion cell where one metal corrodes preferentially to the other. Common examples are rusting car bodies at joints and green stains from copper plumbing contacting steel or chrome.