Kurdish candidate Barham Saleh sweeps to the post of president of Iraq following which he instructs former vice president and veteran Shia politician Adel Abdel Mahdi to form a government.
Iraq's parliament on Tuesday elected as president Kurdish politician Barham Salih, who immediately named Shia Adel Abdul Mahdi prime minister-designate, ending months of deadlock after an inconclusive national election in May.
The presidency, traditionally occupied by a Kurd, is a largely ceremonial position but the vote for Salih was a key step toward forming a new government, which politicians have failed to do since the election.
Under Iraq's constitution, Salih - a British-educated engineer aged 58 who has held office in both the Iraqi federal and Kurdish regional governments - had 15 days to invite the nominee of the largest parliamentary bloc to form a government. He chose to do so less than two hours after his election.
Since Saddam Hussein was toppled in a 2003 US-led invasion, power has been shared among Iraq's three largest ethnic-sectarian components.
The most powerful post, that of prime minister, has traditionally been held by a Shia Arab, the speaker of parliament's by a Sunni Arab and the presidency by a Kurd.
A former vice president, oil minister, and finance minister, Abdul Mahdi now has 30 days to form a cabinet and present it to parliament for approval.
He faces the daunting tasks of rebuilding much of the country after four years of war with Daesh, healing its ethnic and sectarian tensions, and balancing foreign relations with Iraq's two major allies - Iran and its arch-foe the United States.
Abdul Mahdi, 76, is a trained economist who left Iraq in 1969 for exile in France, where he worked for think tanks and edited magazines in French and Arabic. He is the son of a respected Shia cleric who was a minister in the era of Iraq's monarchy, overthrown in 1958.
He was nominated by two rival blocs, one led by Shia cleric Moqtada al Sadr and outgoing Prime Minister Haider al Abadi and the other by Iran-backed militia leader Hadi al Amiri and former premier Nuri al Maliki.
Both blocs claim to hold a parliamentary majority but the dispute has been rendered irrelevant by their choice of the same man to be premier.
"The nomination of Mr Adel Abdul Mahdi came after an agreement between the Binaa bloc and the Islah bloc to nominate him via consensus and not a majority bloc in order to get past the issue of which is the majority bloc," said Ahmed al Asadi, a spokesman for the Binaa bloc led by Amiri and Maliki.