Over four billion years ago, the newly formed solar system consisted of trillions of rocky and icy bodies.