How gravity pulls cosmic dust and rock into growing worlds, forming planets and creating environments where chemistry can become complex.