Solar and sidereal days
The following diagrams explain
the difference between a solar day (based on the Sun) and a sidereal day (based on
the stars).

schoolphysics solar and sidereal time animation
To see an animation of the motion of solar and sidereal time click on the animation link.