Actually, the Maccabees eventually won, and Chanukah (pick your spelling) commemorates both the political victory and the conveniently-timed religious miracle when the Menorah (7-branched candlebra) in the Temple was relit for 8 days on 1 day's worth of oil. Hence Hannukka (showing variation in the spelling) last 8 days and 8 nights.
The Maccabees were the ruling political dynasty for a couple hundred years, as I recall. They fell out of favor with the Pharisees and other political rival, so the two books of the Bible titled Maccabees I & II were removed and are now found in the Apocrypha. Like most books of the Bible, they're pretty boring.
driftwood