The Battle of Talavera (27–28 July 1809) was fought just outside the town of Talavera de la Reina, Spain some 120 kilometres (75 mi) southwest of Madrid, during the Peninsular War. At Talavera, an Anglo-Spanish army under Sir Arthur Wellesley combined with a Spanish army under General Cuesta in operations against French-occupied Madrid. The French army withdrew at night after several of its attacks had been repulsed.