The underground pipe or tank are protected from corrosion by:
Sacrificial protection
Electrical protection
Barrier protection
Galvanisation
The electrical protection of pipe or tank prevent them from corrosion.
The pipelines under the surface of earth are protected from corrosion by connecting them to a more reactive metal Mg or Zn which is buried in the earth and connected to the pipelines by wire.Can't