However, the end was not far off, first with the Brabant Revolution of 1789–90, then the French invasion of 1793. Finally, on 1 September 1796, the Directory abolished all religious institutions. In 1798 the library was emptied and eventually taken to the University of Ghent. From 1798 the abbey church was used as a museum, but was returned to the ownership of the church in 1801 and renamed "Onze-Lieve-Vrouw-Sint-Pieterskerk" ("Our Lady of Saint Peter's Church"). In 1810, the rest of the abbey became the property of the city of Ghent, and was partially demolished for the construction of a military barracks, which remained on the site until 1948.