In the end, Móga remained the commander during the Battle of Schwechat, where the Austrian troops of Windisch-Grätz and Jelačić routed the Hungarian army, which was composed mainly of inexperienced national guards and peasants. Görgei led the advance guard and achieved some success, but the lack of experience of the soldiers and the commanders made all his actions useless, and the panic of the volunteers, who started to flee, decided the battle's outcome. Görgei successfully protected the retreating Hungarians, preventing a complete rout.