The Medical Faculty opened in November 1770, with only five departments. It was given a building of its own in 1772, but soon the whole university left the small town of Nagyszombat behind, moving to the centre of the country: Buda. Although the university had been functioning continuously since its establishment, the ceremonial opening and re-foundation of the university, held in the Buda Castle, only took place in June 1780, three years after the move. When the city of Buda did not prove to be a suitable location for the university either, it moved on to Pest in 1784 and settled down in a former Jesuits’ monastery.