Rusting occurs when iron or steel reacts with oxygen and water. It requires the presence of air and water for the chemical reaction. The chemical equation for rusting involves iron reacting with oxygen to form hydrated iron (III) oxide, also known as rust.