Earth spins because of the way it was formed. Our Solar System formed about 4.6 billion years ago when a huge cloud of gas and dust started to collapse under its own gravity. As the cloud collapsed, it started to spin. Some of the material within this cloud gathered into swirling eddies and eventually formed into planets.