Question: what caused the layers of earth to form?
Answer: These layers formed as the building blocks of Earth, known as planetesimals, collided and collapsed under their own gravity around 4.5 billion years ago. ... Thus, most of the layering on the Earth's surface is due to erosion and deposition of mountain ranges, and lava flowing out on the surface.