War of the Castilian Succession
In 1470, King Afonso V raised the Palace of São Francisco, as it was known at the time, to the level of a royal palace. He expanded the complex and installed his court there, previously located in Estaus Palace. The King spent large sums of time at the palace, but after his defeat in the War of the Castilian Succession, he lived the rest of his life in a monastery, near Sintra.