Trienio Liberal
During the latter stages of the Peninsular War, the Cortes of Cadiz, inspired by the doctrines of liberalism, attacked the privileges of the Mesta. These were attacked again by the liberal government of the Trienio Liberal, which replaced the Mesta with a short-lived state body. Although the Mesta was reinstated in the absolutist restoration of 1823, it was weakened and tainted by its association with absolutism.