A story tells of a legendary miracle. After the war, When the Jews returned to rededicate the Ancient Temple, they found that there was only enough oil to keep the eternal lamp burning for 1 day. It would take 8 days to make more of this special oil. So the lit the lamp, and it miraculously burned for 8 days, giving them plenty of time to make more oil to keep the lamp burning.
But this is a legend. The real reason is probably the fact that during the war, the Jews were unable to celebrate the 8-day harvest festival of Sukkot, so they celebrated it late.
The above answer is non-traditional. Celebrating a festival in a non-ideal manner would hardly be a reason to institute a completely different festival for all time. The comment about the late harvest festival is from a non-traditional source and is not quoted in halakha-texts. Moreover, our tradition is that the miracle of the oil did indeed occur and isn't just a legend. If it wasn't for the clear tradition of our Sages, Hanukkah would have been forgotten long ago. So here is our actual tradition:
The Seleucids (Syrian-Greeks) under Antiochus Epiphanes (2nd century BCE), at the instigation of the Hellenizers, had forbidden various Torah-practices in Judea, such as Sabbath-observance and circumcision, rededicated the Temple to a Greek idol, and pressed the Jews to offer up idolatrous sacrifices. Despite being heavily outnumbered, the Hasmoneans (a family of religious Jews) fought to retake the Holy Temple, which had been seized by the Seleucids, and to enable the people to once again observe the Torah. The Hasmoneans (also called Maccabees) were miraculously victorious. When they reached the Temple grounds, they immediately reconsecrated it to God. As part of this action, they relit the Menorah (Exodus ch.25), which was fueled with olive oil. However, it soon became apparent that there was only sufficient oil to keep the candelabra burning for one single day - and it would take eight days to make and bring some more.
Miraculously, the menorah stayed lit for eight days (Talmud, Shabbat 21b), allowing enough time for new oil to be prepared and brought.
The significance of the miracle is that it demonstrated that God's presence still dwelt in the Holy Temple. This is what Hanukkah represents: the closeness to God; and the avoidance of Hellenization (assimilation).
The Torah Sages instituted the festival of Hanukkah at that time (Talmud, Shabbat 21b), to publicize the miracle (Rashi commentary, ibid). This is why we light our Hanukkah-menorahs.
(The Hanukkah-menorah, or hanukkiyah, is a special form of the original seven-branched menorah. Our Hanukkah-menorahs have eight spaces for oil, or candles, to mark each of the eight days for which the oil lasted and a ninth to hold the shamash, a candle used to light the others.)
The eight-day rededication of the Temple is also mentioned in the book of Maccabees (I, 4:56-59; and II, 1:18); and Josephus mentions the eight-day festival in Antiquities ch.12.
The Al-Hanisim prayer which we recite during Hanukkah centers around the Hasmoneans' victory and rededication of the Temple, while the candle-lighting commemorates the miracle of the oil.
Though the military victory is prominently mentioned in the prayers, it wouldn't have been celebrated if not for the miracle of the oil, just as we have no special occasion to mark Abraham's victory (Genesis ch.14), or those of Moses (Numbers ch.21), Joshua, Deborah (Judges ch.4), Gideon (Judges ch.6-7), Jephthah (Judges ch.11), or King David. And though the Hasmonean battles continued for two decades after the retaking of the Temple, the Sages instituted Hanukkah immediately after the miracle of the oil.
It should also be noted that the main goal for which the Maccabees fought was not political independence. They fought to enable the people to observe the Torah's commandments; as we say in the Al Hanisim prayer: "the Greeks sought to cause us to forget Your Torah and leave Your statutes."
Hanukkah lasts for 8 days.
Hanukkah lasts 8 days
Hanukkah, the Jewish festival of lights, lasts eight days.
There are 8 days of Hanukkah.
Hanukkah is 8 days and Diwali is 5 days.
Chanukah is celebrated by the Jewish religion.
8 nights.
Yes.
There are 8 days of Hanukkah; and snowflakes have six sides or angles.
8
Candles are lit for all 8 nights of Hanukkah.
8 days