Museum 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. By 1839, the palace was once again used to hold royal balls, and served as the temporary residence for visiting royal dignitaries. In 1840, during extensive renovations of the Palace of Necessidades, the royal family returned to Belém and resided in the palace during that decade. The Infanta Antónia was born there in 1845. By 1850, renovation of the grand ballroom was complete, permitting Queen Maria II to receive Portuguese society, and in September 1861, the Infanta was married there to Prince Leopold of Hohenzollern. In November 1861, the Infante Augusto died, followed by the Infante João on Christmas. A succession of deaths forced the Royal Family to abandon the palace, and it once again became a residence for visiting dignitaries. This change in purpose was accompanied by small repairs to the building, as well as the installation of gas lines and new lighting. In 1886, after his marriage to Princess Amélie of Orléans, King Carlos ordered renovations of the palace to prepare it as the royal residence. These were completed under the direction of architect Rafael de Silva Castro; the interior was decorated by Leandro Braga, Columbano and João Vaz. The palace was the birthplace of the Prince Royal Luís Filipe in 1887 and Manuel in 1889. Between 1902 and 1903, remodelling of the interior spaces was undertaken by Rosendo Carvalheira, with the additional construction of a visitors' house on the north walk of the Pátio das Damas to receive delegations of foreign dignitaries. This addition was inaugurated with the official visit of the King of Spain, Alfonso XIII, to Portugal at the end of 1903. The following year, the training stables were separated from the palace and destined to shelter the National Coach Museum. By a royal decree published in the Diário do Governo (4 September), the palace ceased to operate as a royal residence, and passed to the Treasury for the "accommodation of heads of state, princes and foreign missions that come on an official visit to Lisbon, leaving for that purpose by the Ministry of Foreign Affairs". Republic Following the 5 October 1910 Revolution, the Secretaria-Geral da Presidência da República (Secretary-General of the Presidency) moved into the palace on 24 August 1911, as