• Algol lies some 90 light years from Earth. Like many stars, it's a binary: a hot blue-white star and a cooler yellow-orange star that revolve around each other. The stars are only 1/20 of the separation of the Earth and Sun so they revolve around each other quickly… once every 2.867 days.
• But unlike many binary stars, from our point of view on Earth the fainter cool star partly blocks the brighter hot star once per revolution. So the total brightness of the two stars appears to drop suddenly by roughly 70% every 2.867 days. And when the brighter star blocks the cool star, the total brightness drops again by a much smaller amount. The period of brightness variability is like clockwork.
• You can see this variability for yourself. Algol is easily visible in Perseus just east of Mirphak, the brightest star in the constellation. Compare the brightness against Mirphak or nearby gamma Andromedae.

Algol, the "Demon Star" in Perseus
|