Judea experienced conflict under Seleucid rule in the second century BCE. A revolt led by the Maccabean family eventually resulted in the recapture of Jerusalem and the rededication of the Temple. The event became the historical foundation of Hanukkah.
Jewish tradition later preserved a story about a small amount of consecrated oil that should have lasted only one day but burned for eight days. This story explains the enduring importance of the festival's lights in rabbinic tradition, while the historical rededication is the older event connected with the festival.
Families light a hanukkiah over eight nights, add one light each evening, and tell stories of perseverance and communal memory. Hanukkah therefore joins a historical struggle with a later religious tradition about light lasting beyond expectation.