The sun is the mother star of the solar system, which only emits light to half of the planet, while the other part is always dark.
The sun emits light towards the earth, which dominates all life on earth. The movements of the Moon around the Earth and of the Earth around the Sun are complex. Movements of rotation around their own axes are superimposed on movements of orbital translation. The Earth and the Moon rotate around their own axes: This is rotation.