Planets, asteroids, and comets all orbit the Sun. The Sun is a star that produces energy through nuclear fusion. It takes Earth 365 days to complete its orbit around the Sun, and 24 hours to complete a rotation on its axis. The average distance from Earth to the Sun is about 150 million kilometers, known as one astronomical unit.