In the case of steel, rust (corrosion) occurs when steel is exposed to oxygen and water. For example, a component made of steel standing outside in the rain. Over time, oxygen and iron combine at an atomic (indivisible) level. This creates a new compound called iron oxide. Water is a good catalyst, which speeds up the whole process. In seawater, this process is much faster because the salt acts as a conductor.