The following year he commanded on the Rhine against Jean Moreau. As a consequence of his defeats at the battles of Stockach, Messkirch, Biberach, Iller River, and Höchstädt, Kray was driven into Ulm. However, by a skillful march round Moreau's flank he succeeded in escaping to Bohemia. After a 15 July truce became effective he was relieved of his command by Emperor Francis II and dismissed from the service. Kray's successor, Archduke John of Austria was disastrously defeated at the Battle of Hohenlinden in December.