He was formerly one of the leaders of the Solidarity movement. Mazowiecki was the first non-communist prime minister in the Eastern Bloc after World War II. He became Prime Minister on 24 August 1989. His term lasted for nearly 2 years when he left office on 12 January 1991.