The history of the 2nd Polish Corps begins with the formation of the Polish Army in the USSR, created in August 1941 from Polish citizens who found themselves in Soviet prisons and gulags (gulag) as a result of internment or deportation carried out by the NKVD after the German-Soviet partition of Poland in September 1939. The most tragic fate befell the majority of Polish officers and policemen who were captured by the Soviets in September 1939 and were subsequently murdered (over 22,000 people) by the NKVD in the spring of 1940 (including at Katyn).
After Germany's aggression against the USSR and the signing of the Polish-Soviet agreement in July 1941 by the Polish government in London under the leadership of General Władysław Sikorski, the Polish Army in the USSR began to be formed under the command of General Division Władysław Anders. In spring-summer 1942, the units of the Polish Army along with civilians were evacuated to the Middle East. After joining with the Polish Independent Carpathian Rifle Brigade (fighting since 1941 in North Africa under British command), the Polish Army in the East was created in September 1942, from which the 2nd Polish Corps was separated in July 1943 with the intention of directing it to fight in Europe.