Russia managed to secure a favourable international situation by signing treaties with Persia in 1732 and 1735. These returned all Iranian territories gained since 1722 in the North and South Caucasus and Northern Iran, and avoided war with the emerging leader of Persia, Nader Shah. The treaties had other diplomatically favourable aspects as they established a Russo-Iranian alliance against Turkey, as Persia was at war with the Ottoman Empire. In the meantime Russia was also supporting the accession to the Polish throne of Augustus III in the War of the Polish Succession (1733–35), over the French-nominated Stanisław Leszczyński. Austria had been Russia's ally since 1726.