The first university in Poland, Kraków's Jagiellonian University, was established in 1364 by Casimir III the Great in Kraków. It is the oldest university in Poland. It is the second oldest university in Central Europe (after Prague University) and one of the oldest universities in the world. Casimir III realized that the nation needed a class of educated people, especially lawyers, who could codify the country's laws and administer the courts and offices. His efforts to found an institution of higher learning in Poland were finally rewarded when Pope Urban V granted him permission to open the University of Kraków.