In 1658 under the terms of the Treaty of Hadiach the Collegium obtained the status of an 'academy', similar to the Kraków Academy - at that time the Polish–Lithuanian Commonwealth's premier university. Later, in 1694, it was also recognised as an academy by the Moscow Tsardom Tsar Ivan V; this was later reaffirmed by his brother and successor, Peter the Great. Subsequently, during the 17th and 18th centuries the academy was known for its education of the Russian and Ukrainian political and intellectual elites; it was highly acclaimed throughout Eastern Europe and accepted students of all classes and backgrounds from the territories of modern-day Ukraine, Russia, Poland, Belarus, Romania, Serbia, Bulgaria and Greece. In particular the hetmans – military leaders of the famed Zaporozhian Cossacks – were benefactors of and actively supported the Kyiv-Mohyla Academy. The school flourished under the term of Hetman Ivan Mazepa, an alumnus, and was later able to support the foundation of a number of other colleges built on its model, such as the Vasilian College in Moldavia.