The history of the Jews in Serbia is some two thousand years old. The Jews first arrived in the region during Roman times. The Jewish communities of the Balkans remained small until the late 15th century, when Jews fleeing the Spanish and Portuguese Inquisitions found refuge in the Ottoman-ruled areas, including Serbia. The community flourished and reached a peak of 33,000, with almost 90% were living in Belgrade and Vojvodina, before World War II. About two-thirds of Serbian Jews were murdered in The Holocaust, having been particularly targeted as Hitler sought to punish both ethnic Serbs and Jews for German defeat in World War I. After the war, most of the remaining Jewish Serbian population emigrated, chiefly to Israel. In the 2011 census only 787 people declared themselves as Jewish. The Belgrade Synagogue continues to function as a synagogue. The renovated Subotica Synagogue, once the fourth largest synagogue building in Europe, is now mainly a cultural space, but is available for services and other religious purposes. The Novi Sad Synagogue has been converted into a cultural art space. Jews first arrived on the territory of present-day Serbia in Roman times, although there is little documentation prior to the 10th century. History of the Jews in the Ottoman Empire The Jewish communities of the Balkans were boosted in the 15th and 16th centuries by the arrival of Jewish refugees fleeing the Spanish and Portuguese Inquisitions. Sultan Bayezid II of the Ottoman Empire welcomed the Jewish refugees into his Empire. Jews became involved in trade between the various provinces in the Ottoman Empire, becoming especially important in the salt trade. In 1663, the Jewish population of Belgrade was 800. While the rest of modern-day Serbia was still ruled by the Ottoman Empire, territory of present-day Vojvodina was part of the Habsburg monarchy. In 1782, Emperor Joseph II issued the Edict of Tolerance, giving Jews some measure of religious freedom. The Edict attracted Jews to many parts of the Monarchy.