Russian war with Poland The war followed internal tensions within
Poland which indirectly challenged the security of the
Ottoman Empire and its ally, the
Crimean Khanate. The true power behind the Polish throne was the Russian ambassador
Nicholas Repnin and the
Imperial Russian Army, with King
Stanisław August Poniatowski being
elected due to his ties as a former favourite of the Empress
Catherine II of Russia. Repnin had forcefully imposed the
Perpetual Treaty of 1768 between Poland and Russia, which was disadvantageous to Poland geopolitically, challenged the political supremacy of Poland's Catholic faith, prevented reform of the
liberum veto, and allowed
Warsaw's occupation by Russian troops. Rising unrest led to the massive revolt of the
Bar Confederation, which became an alliance of noble, Roman Catholic, and peasant rebels. In the fortified town of
Bar, near the Ottoman border, the Bar Confederation was created on 29 February 1768, led by a Polish nobleman named
Casimir Pulaski. While the Russian army heavily outnumbered the confederates and defeated them several times in direct battle in
Podolia, Ukraine, bands of rebels waged a low-scale guerrilla war throughout Ukraine and southern Poland. On 20 June 1768, the Russian Army captured the fortress of Bar but when one band of surviving confederates fled to the Turkish border, pursuing troops, including Zaporozhian Cossacks, clashed with
janissary garrison troops. Polish revolts continued to trouble Russia throughout the war and make it impossible for Catherine II to keep control of Poland. Upon the outbreak of the war, the Ottomans seemed to have the upper hand as Russia was suffering from financial strain as a consequence of its involvement in the
Seven Years' War. The
Ottoman Navy capitalized on the inferiority of the
Imperial Russian Navy, even though Russia employed British officers to address this weakness. The Ottomans dominated the
Black Sea, giving it the advantage of shorter supply lines. The Ottomans were also able to levy troops from their vassal state, the
Crimean Khanate, to fight the Russians, but their effectiveness was undermined by constant Russian destabilization of the area. In the years preceding the war the Ottoman Empire had enjoyed the longest period of peace with Europe in its history (1739–1768). Nevertheless, the Ottoman Empire faced internal division, rebellion and corruption compounded by the re-emergence of a unified Persian leadership, under
Nader Shah. One clear advantage for the Ottomans was its superior numbers as the Ottoman army was three times the size of its Russian counterpart. However, the new
Grand Vizier Mehmed Emin Pasha would prove himself to be incompetent militarily. The Russian army massed along the borders with Poland and the Ottoman Empire, which made it difficult for Ottomans troops to make inroads into Russian territory. ==Russian invasion==