During the Fantastic War, an attempted Spanish and French invasion of Portugal in late 1762, a Spanish force of 4–5,000 attempted to take Marvão with a frontal attack. An Anglo Portuguese garrison under Captain Thomas Browne defeated the Spaniards who fled with heavy loss, contributing to Spain asking for a truce in November.