At the end of the 17th century, Sumy played a role of collection point of Muscovite troops during the Crimean campaigns of 1687 and 1689. During the Great Northern War, from December 1708 to January 1709 the city was the Stavka (headquarters) of Muscovite Chief of Commander headed by Tsar Peter the Great. Established under the leadership of Prince A. Shakhovskoy, in 1734–43 in Sumy was located the Commission on streamlining the Sloboda Cossack regiments. From its establishment and until the liquidation of Cossackdom in Sloboda Ukraine in 1765, the Cossack officer family of Kondratyevs had a great influence over the city.