Planetary differentiation is the process by which a planet or other celestial body separates into distinct layers or zones with different chemical compositions and physical properties. This process occurs during the early stages of a planet's formation and is driven by the separation of denser materials, such as metals, towards the center, while less dense materials, like silicates, migrate towards the surface.