boyars, and the abolition of serfdom in 1749, as well as Scarlat Callimachi's Code), and signified a decrease in Ottoman demands after the threat of Russian annexation became real and the prospects of a better life led to waves of peasant emigration to neighboring lands. The effects of Ottoman control were also made less notable after the 1774 Treaty of Küçük Kaynarca allowed Russia to intervene in favour of Ottoman subjects of the Eastern Orthodox faith - leading to campaigns of petitioning by the Moldavian boyars against princely policies. In 1712, Hotin was taken over by the Ottomans and became part of a defensive system that Moldavian princes were required to maintain, as well as an area for Islamic colonization (the Laz community). Fragmentation In 1775 Moldavia lost to the Habsburg Empire its northwestern part, which became known as Bukovina. For Moldavia, it meant both an important territorial loss and a major blow to the cattle trade, as the region stood on the trade route to Central Europe. The Treaty of Jassy in 1792 forced the Ottoman Empire to cede Yedisan to the Russian Empire, which made Russian presence much more notable, given that the Empire acquired a common border with Moldavia. The first effect of this was the cession of the eastern half of Moldavia (renamed as Bessarabia) to the Russian Empire in 1812. Organic Statute, 1848 revolution Phanariote rule was officially ended after the 1821 occupation of the country by Alexander Ypsilantis's Filiki Eteria during the Greek War of Independence; the subsequent Ottoman retaliation led to the rule of Ioan Sturdza. He was considered the first of a new system, since the Ottomans and Russia had agreed in 1826 to allow for the election by locals of rulers over the two Danubian Principalities, and convened on their mandating for seven-year terms. In practice, a new foundation to reigns in Moldavia was created by the Russo-Turkish War (1828–1829), beginning a period of Russian domination over the two countries which ended only in 1856. Begun as a military occupation under the command of Pavel Kiselyov, Russian domination gave Wallachia and Moldavia, which were not removed from nominal Ottoman control, the modernizing Organic Statute (the first document resembling a constitution, as well as the first to regard both principalities). After 1829, the country also became an important destination for immigration of Ashkenazi Jews from the Kingdom of Galicia and Lodomeria and