In the 18th century it was recognized as ""Queens lands"", and part of the municipality of Cadaval until 1852. During the Peninsular War, 15000 Anglo-Portuguese troops confronted a much smaller army of French infantry and cavalry (5000 total) in Roliça in the first engagement by British forces. The Battle of Roliça, along the northern frontier with Óbidos, was a confrontation between English General Arthur Wellesley and French General Henri François, Comte Delaborde, who were sent by General Jean-Andoche Junot, to harass and hold British forces until a much larger force could confront the English. The valleys and gullies of Roliça allowed the small French contingent to confront the much larger British force, yet they were unable to defeat them. Although successful, Wellesley did not press the fleeing French troops (who withdrew to Montachique near Torres Vedras), and instead went to support the landing of 4000 troops arriving from England along the coast.