When Germany launched a war against the Soviets in 1941, the Polish government in exile established diplomatic relations with the Soviet Union against Hitlerism, but also in order to help Poles persecuted by the NKVD. On 12 August 1941 the Kremlin signed a one-time amnesty, extending to thousands of Polish soldiers who had been taken prisoner in 1939 by the Red Army in eastern Poland, including many Polish civilian prisoners and deportees entrapped in Siberia. The amnesty allowed the Poles to create eight military divisions known as the Anders Army. They were evacuated to Iran and the Middle East, where they were desperately needed by the British, hard pressed by Rommel's Afrika Korps. These Polish units formed the basis for the Polish II Corps, led by General Władysław Anders, which together with other, earlier-created Polish units fought alongside the Allies.