The only answer is, from a supernova blast. Before the solar system, there had a supernova blast of a star (ancestor of our sun). As a result of the blast, all the matter inside the star dispersed into space. Creation of earth (or any other planet) is not directly dependent on this supernova blast. read more