Its initial successes were neutralized by the reverses of Abensberg, Landshut and Eckmühl but, after the evacuation of Vienna, the archduke won a strong victory at the Battle of Aspern-Essling but soon afterwards lost at the Battle of Wagram. At the end of the campaign the archduke gave up all his military offices.