The first wave of modern Jewish migration to Ottoman-ruled Palestine, known as the First Aliyah, began in 1881, as Jews fled pogroms in Eastern Europe. Although the Zionist movement already existed in practice, Austro-Hungarian journalist Theodor Herzl is credited with founding political Zionism, "How did Theodor Herzl, an assimilated German nationalist in the 1880s, suddenly in the 1890s become the founder of Zionism?" a movement that sought to establish a Jewish state in the Land of Israel, thus offering a solution to the so-called Jewish question of the European states, in conformity with the goals and achievements of other national projects of the time. In 1896, Herzl published Der Judenstaat (The Jewish State), offering his vision of a future Jewish state; the following year he presided over the First Zionist Congress in Basel, Switzerland. The Second Aliyah (1904–14) began after the Kishinev pogrom; some 40,000 Jews settled in Palestine, although nearly half of them left eventually. Both the first and second waves of migrants were mainly Orthodox Jews,. "As with the First Aliyah, most Second Aliyah migrants were non-Zionist orthodox Jews ..." although the Second Aliyah included socialist groups who established the kibbutz movement. Though the immigrants of the Second Aliyah largely sought to create communal agricultural settlements, the period saw the establishment of Tel Aviv as the first planned Jewish town in 1909. This period also saw the emergence of Jewish armed militias, the first being Bar-Giora, a guard founded in 1907. Two years later, the larger Hashomer organization was founded as its replacement.
