After Bohdan Khmelnytsky's death in 1657, his successor, Ivan Vyhovsky, alarmed by the growing Russian interference in the affairs of the Hetmanate, initiated a turn towards Poland.
With the death of Mazepa in Bessarabia in 1709, his council elected his former general chancellor, Pylyp Orlyk, as his successor.