In 1755, the great Lisbon earthquake destroyed a large portion of the city. Around 1774, the Marquis of Pombal, prime-minister of King José I, took protective measures for the commercialisation of the wine of Carcavelos and established the Royal Factory of Wool in the village, which existed until the early 19th century. During the invasion of Portugal by Napoleonic troops in 1807, the citadel of Cascais was occupied by the French, with General Junot staying some time in the village.