Our planet spins due to the way Solar System was formed 4.6 billion years ago. Back then, a huge cloud of gas and dust collapsed under its own gravity. As this process occurred, the cloud began to spin with our planet inheriting this rotation.