This layered structure can be compared to that of a boiled egg. The crust, the outermost layer, is rigid and very thin compared with the other two. ... The mantle, which contains more iron, magnesium, and calcium than the crust, is hotter and denser because temperature and pressure inside the Earth increase with depth.