 In 1834, after the Liberal Wars, Queen Maria II ordered the dissolution of the religious orders and the convent was abandoned by the Franciscans.During the last reigns of the House of Braganza, the palace was mainly used as a base for hunting.In 1849 the monastery part of the building was assigned to the military, a situation still in use today.