Following the dissolution of the Society of Jesus in 1773, the university was taken over by the Piarist teaching order, who was responsible for improving modernising education: the Faculty of Law was established in 1774, with the Faculty of Medicine following in 1775. Multiple departments made up these faculties. King Joseph II downgraded the university to a "Royal College of the Academy" in 1784, which hindered its further progress. Still, the institution became the largest college of Transylvania. The Faculty of Theology was closed down in 1786, and the other faculties offered a wide range of education, including economics and sciences. Following the Civic Revolution and War of Independence of 1848–1849, the Faculty of Arts and Faculty of Law were closed, with the latter functioning as an independent academy starting 1863.