After the Battle of Poltava, when Charles XII of Sweden's and Hetman Ivan Mazepa's armies were defeated by Peter I of Russia, Pylyp Orlyk remained with Mazepa.
When Mazepa died on 5 April 1710, Pylyp Orlyk was elected as the Hetman of the Zaporizhia Host.