On January 31, 1667 the Polish-Lithuanian Commonwealth and the Tsardom of Russia signed the Treaty of Andrusovo.
To further increase his military strength Doroshenko allied with Adil Giray, the khan of the Crimean Khanate [REF].