The university owes its earliest origin to the foundation of the Jesuit College St. Michel on Belze Hill by Peter Canisius in 1580 at the invitation of the government of Fribourg. In 1763, an Academy of Law was founded, housed in the Albertinium (now a Dominican residence). In 1834, the cantonal library was formed from works brought to Fribourg (from Catholic monasteries) for safekeeping. The College St. Michel was closed following the expulsion of the Jesuits from Fribourg after the canton's defeat in the Sonderbund war.