 In 1813, the liberal deputies of the Cortes of Cádiz also obtained its abolition, largely as a result of the Holy Office's condemnation of the popular revolt against French invasion.But the Inquisition was reconstituted when Ferdinand VII recovered the throne on 1 July 1814.Juan Antonio Llorente, who had been the Inquisition's general secretary in 1789, became a Bonapartist and published a critical history in 1817 from his French exile, based on his privileged access to its archives.