As part of Army Group Africa commanded by General Rommel, the First Army attacked Lieutenant General Bernard Montgomery's Eighth Army at Operation Capri (the Battle of Medenine, just east of the Mareth Line. The First Army suffered a crushing defeat and the attempt by Rommel and Arnim to break through in Tunisia failed. By the end of May, Allied troops had captured all of North Africa, and the First Army was the last of the 270,000 Axis troops taken prisoner.