At the Battle of Poltava , Charles , Mazepa and those cossacks that followed him were defeated and exiled to Turkey .
In 1708 Mazepa allied himself with Charles XII of Sweden .
At the Battle of Poltava , Charles XII , Mazepa and those cossacks that followed Mazepa were defeated and exiled to Turkey .
In 1708 Mazepa allied himself with Charles XII of Sweden .