The jubilation following General Castaños' mid-July victory at Bailén was short-lived, and General Merlin's sacking of Bilbao, on 16 August 1808, caused much popular discontent throughout the country, which was aimed specifically at the Juntas and the generals.