Selected by the Soviets for officer training in 1943, he served in the military until 1989. He was the last commander-in-chief of the Polish People's Army (Ludowe Wojsko Polskie) and chairman of the Polish United Workers Party 1981-1989. Jaruzelski was the Prime Minister of the Republic of Poland from 1981-1985 and remained as head of state until 1990 as Poland's last communist leader. He resigned to allow for democratic elections.