Corrosion occurs when a metal loses electrons and forms positive metal ions, reacting with oxygen and water. For iron, this forms rust. Corrosion happens faster in the presence of salt, pollutants, and heat, as they help carry electrons away from the metal. Common prevention methods include barriers like painting or greasing, sacrificial protection using more reactive metals, cathodic protection with batteries, and coating metals like galvanizing or electroplating.