However, in the 18th century, the growing Russian influence and expansion, and the decline of the Polish–Lithuanian Commonwealth made Austria switch its support from Poland to Russia. Russian political dominance of Poland was further enhanced by the Partitions of Poland in which Austria was one of the main parties, along with Russia and Prussia. Austria, however, acquired the smallest partition of Poland, as it participated only in the First and Third of the three partitions. It lost parts of the captured territories in the Austro-Polish War in 1809.