To understand why the Palace of Ajuda exists at all, go back to the first of November, 1755. On that day a catastrophic earthquake struck Lisbon. The royal family had been living in the old palace by the river, the Paço da Ribeira, and it was destroyed. In the aftermath of the disaster, and during the reign of King Dom José the First, the court moved out to this western hill, to the Quinta da Ajuda. They settled into a wooden structure known as the Real Barraca, the Royal Tent, a timber residence that stood here until the end of the eighteenth century. Once that wooden palace was gone, work began in 1795 on a permanent stone palace worthy of the royal family. The road from there was anything but smooth. A year after the works started, the architect Manuel Caetano de Sousa launched a scheme in the Baroque taste, which by then was already out of step with the times. In 1802 the project was completely reformulated by Francisco Xavier Fabri and José da Costa e Silva, who gave the palace the Neoclassical form you see today. Then history intervened again: in 1807 the royal family departed for Brazil ahead of the French invasions, and later came the civil war between liberals and absolutists. Financially strained and politically battered, the palace was built slowly, decorated slowly and inhabited irregularly until the monarchy fell in 1910. That same year, by decree on the sixteenth of June, it was declared a national monument.