The city rose to prominence in 1364, when Casimir III of Poland founded the University of Kraków, the second oldest university in central Europe after the Charles University in Prague. King Casimir also began work on a campus for the Academy in Kazimierz, but he died in 1370 and the campus was never completed. The city continued to grow under the joint Lithuanian-Polish Jagiellon dynasty. As the capital of the Kingdom of Poland and a member of the Hanseatic League, the city attracted many craftsmen from abroad, businesses, and guilds as science and the arts began to flourish. The royal chancery and the University ensured a first flourishing of Polish literary culture in the city.