By Maher Chmaytelli and Ulf Laessing
Iraqis voted on Saturday for the first time since the defeat of Islamic State, with Prime Minister Haider Abadi, a rare ally of both the United States and Iran, trying to fend off powerful Shi'ite groups that would pull the country closer to Tehran.
Iraqis expressed pride at the prospect of voting for the fourth time since the fall of dictator Saddam Hussein, but also said they had scant hope that the election would stabilise a country beset by conflicts, economic hardship and corruption.
Polling stations closed at 1800 (1500 GMT).
Reuters reporters at polling stations in several cities said voter turnout appeared to be about 30 percent, citing sources in provincial offices of the Independent High Electoral Commission. Turnout in the 2014 vote was about 60 percent.
An election observer and two voters were killed by a bomb attached to their car in a Sunni Arab region south of the oil city of Kirkuk in an attack security sources linked to the election.
Islamic State earlier claimed responsibility for the attack. The militants had threatened violence in the run-up to the vote.
Voters will pass their verdict on Abadi, who has achieved the delicate task of maintaining relationships with both of Iraq's main allies who are otherwise arch enemies: Iran and the United States.
Whoever wins the election will have to contend with the fallout from U.S. President Donald Trump's decision to pull out of a nuclear deal with Iran, a move Iraqis fear could turn their country into a theatre of conflict between Washington and Tehran.
Abadi, who came to power four years ago after Islamic State seized a third of the country, received U.S. military support for Iraq's army to defeat Islamic State even as he gave free rein to Iran to back Shi'ite militias fighting on the same side.
But now that the military campaign is over, he faces political threats from two main challengers: his predecessor Nuri al-Maliki, and the leader of the main Shi'ite paramilitary group, Hadi al-Amiri, both closer than he is to Iran.
Iraq remains divided among its three main ethnic and religious groups -- the majority Shi'ite Arabs and minority Sunni Arabs and Kurds -- at odds for decades. Past election outcomes have hinged on whether leading Shi'ite parties could obtain enough seats to marginalise the other groups.
Iran has wide sway in Iraq as the primary Shi'ite power in the region. But the United States, which invaded Iraq in 2003 to topple Saddam, occupied it until 2011 and sent troops back to help fight Islamic State in 2014, also has deep influence.
Iran's clout has caused resentment among Sunnis as well as some Shi'ites, who have grown tired of religious leaders, parties and militias and want technocrats to rule the country.
Abadi is seen as the narrow frontrunner, but victory is far from certain. A British-educated engineer with no powerful political machine of his own when he took office, he solidified his standing with the victory over Islamic State.
Although he has failed so far to improve the limping economy, his supporters say he is best placed to keep more overtly sectarian political leaders in check.
"He's non-sectarian and we like him," said Um Laila in West Mosul, which suffered some of the heaviest damage during the war against Islamic State. "He liberated Mosul."
Even if Abadi's Victory Alliance wins the most seats, he still must negotiate a coalition government, which must be formed within 90 days of the election.
One of his principal rivals, Amiri, 63, spent more than two decades fighting Saddam from exile in Iran and leads the biggest group of volunteer forces that fought Islamic State. Victory for Amiri would be a clear win for Iran.
Opponents accuse Amiri's Badr Organisation of abusing Sunni Muslims during sectarian conflicts, and of taking orders from Iran. They say he achieved little in the powerful post of transport minister from 2010-2014.
His supporters say he was pivotal in defeating Islamic State and would offer stronger leadership than Abadi.
"I voted for Amiri because he is clean leader. Without him Daesh (Islamic State) would have been here," said Raid Sabah, 39, who is struggling to make a living as a taxi driver in the southern city of Basra. "Abadi didn't do anything."
Other Iraqis are disillusioned with war heroes and politicians who have failed to restore state institutions and provide badly needed health and education services.
"We need neither tanks nor jets. We need only the ballot paper through which we can rectify the political process which was aborted by those who governed Iraq," said labourer Khalid al-Shami, 50, at a polling station in Baghdad.
Many of the poor have turned to Moqtada al-Sadr, a firebrand Shi'ite cleric who led a violent uprising against the U.S. occupation from 2003-2011 but has since remade himself as an opponent of the traditional religious parties, striking an unlikely alliance with the Communists and other secular groups.
"We had hoped that lives will change but Abadi and Maliki didn't do anything for us. We live in poverty, have no jobs and state services," said 36-year old Hussein Yousef, who praised Sadr as a protector of the downtrodden.
Maliki, who stepped aside in 2014 after Islamic State swept through a third of the country, is seeking a comeback, casting himself as a Shi'ite champion. Opponents say his sectarian policies during eight years in power created the atmosphere that enabled Islamic State to gain sympathy among Sunnis.
Since Saddam's fall, the post of prime minister has been reserved for a Shi'ite, the speaker of parliament has been a Sunni, and the ceremonial presidency has gone to a Kurd - all three chosen by parliament.
More than 7,000 candidates in 18 provinces are running this year for 329 parliamentary seats. More than 24 million of Iraq's 37 million people are eligible to vote.
In the ruins of West Mosul, where Islamic State proclaimed its caliphate in 2014 and fighters held out for most of last year in the face of the biggest battle of the post-Saddam era, turnout appeared strong even though transport was shut for security reasons and voters had difficulty reaching the polls.
“We need new faces not this group of corrupt politicians currently in Baghdad,” said Ahmed Noor, a shop owner.
(Additional reporting by Haider Kadhim; Writing by Michael Georgy, Editing by Peter Graff and Angus MacSwan)