The Earth rotates on itself and around the Sun. The apparent movements of these stars are due to the gravitational attraction between them.