It is accepted that space and time must transform in order that observers in unaccelerated relative motion see the same speed of light.
Until now there has been no explanation for why space and time should transform by just the right amounts for observers in an infinite expanding Universe to see a constant speed of light regardless of their relative motion.
It is shown here how these time and space transformations can be fully explained by the gravitational effect of mass and energy in an expanding Universe.