What did the soil on earth first form from

The soil on Earth first formed from the weathering and breakdown of rocks over millions of years. This process involved physical, chemical, and biological processes that helped to create the mineral and organic components that make up soil.