Iranians voted in fiercely-contested presidential polls today, standing in long lines to choose between Hassan Rouhani, the incumbent who wants normal ties with the West, and a populist challenger backed by powerful security hawks.

"Everyone should vote in this important election ... The country's fate is determined by the people," Supreme Leader Ayatollah Ali Khamenei said, casting his ballot in Tehran as lengthy queues formed across the country of 80 million.

In a warning reflecting rising political tensions amid signs of an unexpectedly close race, Rouhani has urged Iran's powerful elite Revolutionary Guards, believed to support his conservative opponent Ebrahim Raisi, not to meddle in the vote.

Suspicions that the Guards and the Basij militia under their control falsified voting results in favour of hardliner Mahmoud Ahmadinejad led to eight months of nationwide protests in 2009. Dozens of people were killed and hundreds arrested, human rights groups say, in the worst unrest to hit the Islamic Republic.

Raisi, 56, and Rouhani, 68, traded charges of graft and brutality on television debates with an open vehemence unseen since the 1979 Islamic Revolution. Both deny the other's accusations.

Rouhani says a hardline victory could put Iran back on a more confrontational, economically damaging course with the West

State television showed lengthy queues forming outside polling stations in several cities and said 56 million Iranians out of the more than 80-million-strong population were eligible to vote.

The Guards hope that a win for Raisi will give them an opportunity to claw back economic and political power lost in Shi'ite Iran's complex theocratic and republican governing structure since 2015, when Iran struck a nuclear deal with world powers that brought it out of international isolation.

Although Khamenei is guarded about his political preferences, he appears to back Raisi both as a presidential candidate and possible successor.

But in an apparent reference to the 2009 disturbances, Khamenei, an unelected clerical hardliner who has the ultimate say in Iran, has previously warned he would confront anyone trying to interfere in the election.

Rouhani, who championed the deal to lift most sanctions on Iran in return for curbs on its disputed nuclear programme, is a staunch supporter of engagement with the West and liberal reforms to the economy, now dominated by state institutions.

He also says a hardline victory could put Iran back on a more confrontational, economically damaging course with the West, and would prevent the opening of society that a majority of Iranians, especially the youth, yearn to see.

But hardline rivals hammered Rouhani over his failure to boost an economy weakened by decades of sanctions, even after most were rescinded following the nuclear agreement.

Despite the removal of nuclear-related sanctions in 2016, lingering unilateral US sanctions that target Iran's record on human rights and terrorism have kept many foreign companies wary of putting stakes in the Iranian market.

While the vote may not have a decisive influence on foreign policy, which is set by Khamenei, the election of a hardliner could harm Iran's global image and further deter foreign trade and investment seen as vital to rebuilding the economy.

Some 350,000 security forces were deployed around the country to protect the election, state television reported.

Polls close at 6pm (1330 GMT), although authorities often extend voting into the evening. Ballot counting will start at midnight and final results are expected within 24 hours of polls closing, the semi-official Fars news agency said. (Reuters)

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.