In 1413 Pope John XXIII founded the university's department of theology, which for quite some time had only a few students. It was not until the 16th and 17th centuries that the school developed a department of medicine. The bishop of Avignon was chancellor of the university from 1303 to 1475. After 1475 the bishop became an archbishop but remained chancellor of the university. The papal vice-legate, generally a bishop, represented the civil power (in this case the pope) and was chiefly a judicial officer who ranked higher than the Primicerius (Rector).