The Austrians, under Ludwig von Benedek, marched faster than Moltke expected, and might have opposed Prince Frederick Charles (the Red Prince) with four or five corps; but Benedek's attention was centered on Crown Prince Frederick, and his four corps, not under a common command, were beaten in detail. On 1 July Benedek collected his shaken forces into a defensive position in front of Königgrätz. Moltke's two armies were now within a short march of one another and of the enemy. On 3 July they were brought into action, the first army against the Austrian forces and the second against the Austrian right flank. The Austrian army was completely defeated and the campaign and war were won.