Election chief Ali Asghar Ahmadi announcing the preliminary results on state channel IRIB:
Votes being counted in the U.S. Reports appeared to suggest that many Iranians voted outside the country.
It's still very early, and final figures could eventually vary significantly from what we're seeing now, but some folks are already turning their attention to the true prize on the Iranian political scene, the supreme leader's post. That person, currently Ayatollah Ali Khamenei, is 77 and said to be in flagging health, and Raisi has been whispered to be a contender to succeed him in the future.
So what would a trouncing in this election mean for Raisi's potential bid to become supreme leader?
Here's one answer: