The Palácio Nacional da Ajuda was the main residence of the royal family between 1862 and 1910. It's a museum today.