The Star of David is the primary modern emblem of the Jewish religion. The name derives from the legend that this emblem was used by the Biblical King David. It was not associated specifically with the faith until the middle ages, when it began to appear on flags, tombstones, and synagogues. It was also important to the flourishing kabbalistic tradition of the same time period. Kabbalistically, the hexagram symbolizes the six directions of space, the divine union of male and female energy, and the four elements.