Here's why:
* Inner Core: This is the densest layer, composed primarily of iron and nickel. The immense pressure from the surrounding layers keeps it in a solid state despite the intense heat.
* Outer Core: This layer is also primarily iron and nickel, but it's liquid due to lower pressure. While still incredibly dense, it's less dense than the inner core.
* Mantle: This thick layer is composed of silicate minerals and is less dense than the core. The upper mantle is solid, while the lower mantle is more viscous due to the immense heat.
* Crust: The outermost layer is the thinnest and least dense, composed of various types of rocks, including basalt and granite.
The decrease in density is mainly due to:
* Composition: As you move outward, the layers are composed of lighter elements like silicon and oxygen.
* Pressure: The pressure decreases as you move towards the surface, leading to less compression of the materials and thus lower density.
This density difference plays a crucial role in plate tectonics and Earth's magnetic field. The denser materials sink towards the core while lighter materials rise, creating convection currents that drive these processes.