In the 1970s, Abdul-Mahdi was a leading member of the Iraqi Communist Party. The party split into two separate factions, the ICP-Central Committee, which was more accommodating of the military governments that had ruled Iraq since 1958, and the ICP-Central Leadership, which rejected all forms of cooperation of what it regarded as anti-progressive regimes, in 1967. Abdul-Mahdi joined the ICP-Central Leadership, and continued being active until it gradually disappeared by the early 1980s. By that time, Abdul-Mahdi adopted IranianIslamic ideas, eventually merging with the Islamists when Ayatollah Khomeini eradicated the communists and other liberal opposition groups in Iran. Abdul-Mahdi continued his association with Iran and gradually amalgamated his group within the ICP-Central Leadership with the Iranians, rejecting his Marxist past and devoting all his group's time to propagating Khomeini's ideas in France, where he lived at the time. He eventually was made a member of the Supreme Council for the Islamic Revolution in Iraq, an exiled opposition party and militia that was formed by Iran in Tehran in 1982 but composed exclusively of Iraqi exiles. In 2006, Abdul-Mahdi, outgoing Vice President in the transitional government, unsuccessfully ran for the United Iraqi Alliance's nomination for Prime Minister against incumbent Ibrahim al-Jaafari. He lost by one vote. He was reportedly considered to be a possibility for Prime Minister once again until Nouri al-Maliki became the UIA nominee. Subsequently, Abdul-Mahdi was re-elected as Vice President of Iraq. He exerted his limited authority in that role by delaying the first meeting of the National Assembly in March. He resigned from his position as vice-president on 31 May 2011. In December 2006, the Associated Press reported that Abdul-Mahdi could be the next Prime Minister of Iraq if a new multi-sectarian coalition succeeded in toppling the government of Nouri al-Maliki. On 26 February 2007, he survived an assassination attempt that killed ten people. He had been targeted two times prior. In 2009, his bodyguards were the perpetrators of a bloody bank robbery in Baghdad. In July 2013, Abdul-Mahdi announced his decision to give up his retirement pensions as a former vice president. On 2 October 2018, Iraqi presidentBarham Salih selected Abdul-Mahdi to be the Prime Minister of Iraq. Mahdi had 30 days to form a new government. On 25 October 2018, Abdul Mahdi was sworn into office, five months after the 2018 elections. In April 2019, Abdul-Mahdi met with German ChancellorAngela Merkel in Berlin. He announced a $14 billion plan to upgrade Iraq's electricity infrastructure, with likely cooperation with German company Siemens. Merkel also pledged to strengthen economic and security cooperation between the two countries, and to continue German support for reconstruction efforts in Iraq.
Resignation
On 29 November 2019, after weeks of violent protests, Mahdi announced that he would resign from his post. The Iraqi parliament approved his resignation on 1 December 2019.