in October that year, which ceded to the Ottomans the Commonwealth part of Ukraine (the Right-bank Bracław Voivodeship, Podole Voivodeship and part of Kiev Voivodeship; Left-bank Ukraine was already controlled by Russia since the Treaty of Andrusovo of 1667) and promised an annual tribute of 22,000 ducats. The second phase (1673–1676) Instead of ratifying the peace treaty, the Commonwealth Sejm, with most of the deputies finally united by anger due to the territorial losses and the demeaning tribute (which could in fact be seen as reducing the Commonwealth to Ottomans' vassal) finally raised taxes for a new army (of about 37,000 strong was raised) and increased the Cossack register to 40,000. Hetman John Sobieski led a military campaign against the Ottomans and dealt several defeats to the Ottomans; of which the battle of Khotyn was the largest; next he took control of the Moldavia territory and most of disputed Ukrainian lands. That year king Michael I of Poland died, and in recognition of his victories and dedication, John Sobieski was elected King of the Commonwealth in 1674. Over the next year, however, the Polish forces were subject to attrition, as the Sejm again refused to raise taxes and pay the army, resulting in mass desertions of unpaid soldiery. The Polish problems were further aggravated by the incompetent leadership of hetman Michał Kazimierz Pac, who obstructed Sobieski's leadership, while the Ottomans continued to receive reinforcements. Nonetheless in 1674 the Commonwealth resumed the offensive, taking advantage of a new Russo-Turkish conflict that year, and the Polish-Ottoman war remained undecided. Sobieski's force of 6,000 defeated 20,000 Turks and Tatars under Ibrahim Shyshman in the battle of Lwow in August 1675. Even after the Battle of Trembowla, the Sejm still refused his pleas for more funds and a larger army. In 1676, after Sobieski's 16,000 withstood the two-week siege of Żurawno, by 100,000 men under Ibrahim Pasha, a new peace treaty was signed, the Treaty of Żurawno. The peace treaty partially reversing those from Buczacz: the Ottomans kept approximately two thirds of the territories they gained in 1672, and the Commonwealth no longer was obliged to pay any kind of tribute to the Empire; a large number of Polish prisoners were released by the Ottomans. Aftermath The Sejm rejected the treaty, through the actions of Austrian diplomats and Pope Innocent XI. Sobieski also was forced to reduce his army from 30,000 to 12,000 men.