Liberal Wars
After 1807, with the departure of the royal family for Brazil, the furniture and artwork were removed from the palace, and the building was abandoned until the end of the Liberal Wars.