In 1648, Bohdan Khmelnytsky captured a sich at Mykytyn Rih, near the present-day city of Nikopol. From there he began an uprising against the Polish–Lithuanian Commonwealth that led to the establishment of the Cossack Hetmanate (1649–1764). After the Treaty of Pereyaslav in 1654, the Zaporozhian Host was split into the Hetmanate, with its capital at Chyhyryn, and the more autonomous region of Zaporozhia, which continued to be centred on the Sich. During this period the Sich changed location several times. The Chortomlyk Sich was built at the mouth of the Chortomlyk River in 1652. In 1667 the Truce of Andrusovo made the Sich a condominium ruled jointly by Russia and the Polish–Lithuanian Commonwealth.