Accretion is a critical process in planet formation, where planetesimals and smaller particles clump together due to gravitational attraction. This leads to the creation of larger planetary embryos. Differentiation occurs as these bodies grow, with heavier elements sinking to the center and lighter elements rising to the surface, forming a layered structure.