Гадячский договор
However, with the downfall of Vyhovsky that followed, Hulyanytsky was removed from his office by the new hetman. In 1659, Hulyanytsky allied himself with another hetman, Yurii Khmelnytsky. An ardent opponent of Moscow, Hulyanytsky was of one several Cossacks, who on behalf of the hetman negotiated the conditions of the new Chudniv Treaty with the Poles . The new treaty was similar in form to the Treaty of Hadiach of 1658 but with far worse conditions for Ukraine. Signing of this treaty by the hetman provoked a new round of civil war.