Cepheid variables pulsate due to a balance between gravitational forces and the radiation pressure within the star. During contraction, the star's temperature and pressure increase until it rebounds and expands. This cycle repeats with remarkable regularity. The period of pulsation is directly correlated with the star's intrinsic luminosity, a property that is exploited in distance measurements.