During Hanukkah, frying food in oil symbolizes the miracle that happened when only a small amount of oil was left for the holy light to burn in the Temple, but it miraculously burned for eight days. This is how the Festival of Lights began.