Rust is a form of corrosion that occurs when iron or steel reacts with oxygen in the presence of water. This chemical reaction forms iron oxide, which is the reddish-brown substance we know as rust.
While oxygen is the primary culprit, the presence of water, even in the form of humidity, accelerates the rusting process.