Video: Simulating the birth of a planet

The majority of planets form when a molecular cloud collapses into a young star. 

Indeed, the leftover gas and dust form a disk around the star, with the particulates inside the disk colliding and coalescing.