Cepheid variable stars change in luminosity with a typical perio

Cepheid variable stars change in luminosity with a typical period of several days. The period has been found to have a definite relationship with the absolute luminosity of the star. How could these stars be used to measure the distance to galaxies?