In the First Invasion (1806), General William Carr Beresford led around 1,600 troops (mostly infantry, with some cavalry and artillery).
In the Second Invasion (1807), the British sent a much larger force, with about 10,000 soldiers, led by General John White Locke.