Corrosion is the deterioration of metal due to its interaction with the environment, which is a natural phenomenon. For corrosion to occur, there must be two areas of differing electrical potential on a metal structure that are electrically connected and exposed to a common electrolyte like soil or water. The rate of corrosion depends on factors like the potential difference between the anode and cathode, resistivity of the electrolyte, and presence of stray currents. Common types of corrosion include uniform, localized, and pitting corrosion, which commonly affect buried piping, steel piles, storage tanks, reinforced concrete, and ships.