The menorah in the Jerusalem Temple had seven branches. Eight of the branches of the Hanukkah menorah commemorate the eight days of the festival, which in turn commemorate the miracle by which the oil that was enough only for one day lasted for eight days in 164 B.C.E. after the Temple was cleansed of the desecration of Antiochus IV. The light in the ninth branch is used to light the other eight.