Born in Moscow, he studied military history as a young boy and joined the Imperial Russian Army at the age of 17. During the Seven Years' War he was promoted to colonel in 1762 for his success on the battlefield. When war broke out with the Bar Confederation in 1768, Suvorov captured Kraków and defeated the Poles at Lanckorona and Stołowicze, bringing about the start of the Partitions of Poland. He was promoted to general and next fought in the Russo-Turkish War of 1768–1774, winning a decisive victory at the Battle of Kozludzha. Becoming the General of the Infantry in 1786, he commanded in the Russo-Turkish War of 1787–1792 and won crushing victories at the Battle of Rymnik and Siege of Izmail. For his accomplishments, he was made a Count of both the Russian Empire and Holy Roman Empire. Suvorov put down a Polish uprising in 1794, defeating them at the Battle of Maciejowice and storming Warsaw.