Answer : Rust forms when oxygen reacts with chemicals in rocks.
Explanation :
Rusting : It is a chemical process in which an iron react with oxygen to give an iron(III)oxide as a product. The product iron(III)oxide formed from the chemical reaction is known as rust.
The chemical reaction will be,

Hence, rust forms when oxygen reacts with chemicals in rocks.