The Magen David in the middle, came to us from ancient Eastern civilizations where it held magical mystical meanings. During the Middle Ages, the Star of David became identified as the symbol of the Jews, who had chosen it to distinct themselves under the monarchs of Europe at the time. In the late 18th century, the Zionist movement chose it again as a symbol. During the national awakening era the leaders had offered other options as the national flag, for example, Herzel offered the 7 stars flag, but this proposal did not make it, as the people wanted two stripes and a Magen David.
The flag was displayed during the first Zionist congress in Basel in 1897, but it only became the official flag in 1933. The flag was voted on, and once the decision was made, everyone stood up and sang the Hatikva together.