While rocks can contain iron, iron itself is a pure element.
Here's the breakdown:
* Igneous rocks are formed from the cooling and solidification of magma or lava.
* Sedimentary rocks are formed from the accumulation and cementation of sediments.
Neither of these processes create iron. Iron is found in the Earth's core and is extracted through mining.