What did the Star of David represent?

The Star of David (or Magen David) is a hexagram and was not unique to Judaism. In the Hellenistic world, hexagrams were used by all religions. In the Middle Ages, Jews, Christians and Muslims used them to ward off demons and fires.

In the fourteenth century, Jewish mystical texts began to use the hexagram image to represent the shield of God used to protect King David. The Star of David first appeared on a Jewish flag in Prague in 1527 when Enlightenment Jews needed a symbol, equivalent to the Christian cross, to represent Judaism.