Metal corrodes when it reacts with another substance such as oxygen, hydrogen, an electrical current or even dirt and bacteria. Corrosion can also happen when metals like steel are placed under too much stress causing the material to crack.