who encouraged the Renaissance and attempted to introduce Lutheranism to Moldavia. In 1595, the rise of the Movilești boyars to the throne with Ieremia Movilă coincided with the start of frequent anti-Ottoman and anti-Habsburg military expeditions of the Polish–Lithuanian Commonwealth into Moldavian territory (see Moldavian Magnate Wars), and rivalries between pretenders to the Moldavian throne encouraged by the three competing powers. The Wallachian prince Michael the Brave, after previously taking over Transylvania, also deposed Prince Ieremia Movilă, in 1600, and managed to become the first Prince to rule over Moldavia, Wallachia, and Transylvania; the episode ended in Polish conquests of lands down to Bucharest, soon ended by the outbreak of the Polish–Swedish War and the reestablishment of Ottoman rule. Polish incursions were dealt a blow by the Ottomans during the 1620 Battle of Cecora, which also saw an end to the reign of Gaspar Graziani. A period of relative peace followed during the more prosperous and prestigious rule of Vasile Lupu. He took the throne as a boyar appointee in 1637 and began battling his rival Gheorghe Ștefan, as well as the Wallachian prince Matei Basarab. However, his invasion of Wallachia, with the backing of Cossack Hetman Bohdan Khmelnytsky, ended in disaster at the Battle of Finta in 1653. A few years later, Moldavia was occupied for two short intervals by the anti-Ottoman Wallachian prince Constantin Șerban, who clashed with the first ruler of the Ghica family, George Ghica. In the early 1680s, Moldavian troops under George Ducas intervened in right-bank Ukraine and assisted Mehmed IV in the Battle of Vienna, only to suffer the effects of the Great Turkish War. Phanariots (1711–1822) During the late 17th century, Moldavia became the target of the Russian Empire's southwards expansion, inaugurated by Peter the Great with the Russo-Turkish War of 1710-1711. Prince Dimitrie Cantemir sided with Peter in open rebellion against the Ottomans, but he was defeated at Stănilești. Sultan Ahmed III officially discarded recognition of local choices for princes, imposing instead a system relying solely on Ottoman approval: the Phanariote epoch, inaugurated by the reign of Nicholas Mavrocordatos. Phanariote rule was marked by political corruption, intrigue, and high taxation, as well as by sporadic incursions of Habsburg and Russian armies deep into Moldavian territory. Nonetheless, they also attempted legislative and administrative modernization inspired by The Enlightenment (such as the decision by Constantine Mavrocordatos to salarize public offices, to the outrage of