 The Constitution limited the executive authority of the hetman, and established a democratically elected Cossack parliament called the General Council.Pylyp Orlyk's Constitution was unique for its historic period, and was one of the first state constitutions in Europe.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.