After the End of World War II in Europe, the Second Army was regrouped in the vicinity of Wrocław. On the 17 May it was transferred from the 1st Ukrainian Front to the High Command of the People's Army of Poland. Until August 1945 the Army was tasked with guarding the Recovered Territories and the new Polish-German frontier on the Oder-Neisse line. Among other changes, the 12th Infantry Division was reformed to guard the border in the Szczecin area. The army was disbanded in August; most of the formation was used to create the Poznań Military District.