A closer look at Planetary differentiation
A sufficiently mobile young planet can sort materials by density.
Dense metals tend to sink toward the center, while lighter silicates build a mantle and crust. This history helps explain why planetary interiors are layered. A terrestrial planet has a predominantly rocky and metallic body with a solid surface.
Iron-rich meteorites can be fragments of differentiated bodies stripped apart by collisions. They offer clues to material normally buried far below a surface. For the surrounding ideas, see Iron meteorite.
OpenStax · Astronomy 2e · 7.2 Composition and Structure of Planets · Iron catastrophe on Wikipedia · Image and attribution
Want to learn more about Planetary differentiation? Planetary differentiation on Wikipedia.

