In 1809, while Napoleon was fighting Austria at Wagram, the war in Spain and Portugal raged on. The French had inflicted terrible defeats on the Spanish armies, but now faced popular uprisings as well as well-trained Anglo-Portuguese forces led by General Lord Wellington.