Campaigning in Iran's presidential election ended on Thursday, a day before the vote in which the sole moderate candidate has an unlikely chance to steal victory from his hardline rivals.
Hardliners have failed to agree on a unity candidate, potentially splitting their vote and improving the chances of moderate cleric Hassan Rohani to progress to a run-off poll.
The next president is not expected to produce any major policy shift on Iran's disputed nuclear program or its support for Syrian President Bashar Assad since Supreme Leader Ayatollah Ali Khamenei calls all the shots on the big issues.
Yet all but one of the candidates - chief nuclear negotiator Saeed Jalili - has advocated a less intransigent approach to nuclear talks with world powers. The president can influence the tone of Iran's foreign policy with his choice of trips abroad.
Khamenei, 73, never travels outside Iran.
The president will also have the task of trying to fix an economy battered by intensifying international sanctions and soaring inflation fed by state subsidies and corruption.
Friday's presidential election is the first in Iran since 2009 when reformists said the vote had been rigged to ensure the re-election of Mahmoud Ahmadinejad, touching off the biggest protests since the 1979 Islamic revolution.
Khamenei is determined to see a less troublesome, more compliant president, analysts say, but above all no repeat of the 2009 unrest that dented the Islamic Republic's legitimacy.
Consequently campaigning, which ended at 8 a.m. local time on Thursday, has been tightly restricted and subdued.
But Rohani appeared to be showing a last-minute surge with large crowds on the streets of the eastern holy city of Mashhad for his final election gathering on Wednesday.
"Rohani was amazing in yesterday's rally. It was a huge welcome and unprecedented in Mashhad," wrote one supporter on Twitter.
Pictures on social media showed what appeared to be sizeable public rallies, discouraged by authorities, in favour of Rohani in Tehran late into the night. Large rallies were also staged in the Iranian capital by supporters of hardline candidates.
Rohani, best known for his conciliatory stance in nuclear talks with Western powers between 2003 and 2005, could benefit from his rivals' failure to unite behind a single hardline candidate even after months of trying.
Despite his endorsement by reformists sidelined after 2009, Rohani is still very much an establishment figure, though one less dogmatic and more open to conciliation with the West.
In an interview with the Arabic newspaper A Sharq Al Awsat published on Thursday, Rohani said Israel was behind a campaign of disinformation to label Tehran's peaceful nuclear activities a weapons program.
"If I were to be elected president of the country, I will reflect these beliefs through regaining international trust and exposing these hidden motives," he said.
"The United States and its allies have to stop this deceit," Rohani told the Saudi-owned newspaper. He would judge U.S. President Barack Obama "by his actions, not his words" and called for sanctions to be lifted in order for ties to improve.
A high voter turnout might benefit Rohani, but more liberal Iranians likely to back the mid-ranking cleric are debating whether to vote at all, given their widespread belief that the result will be fixed as they say it was in 2009.
Some middle-class Iranians though, while not enthused about any of the candidates, may vote to try to stop a hardliner such as Jalili getting in.
"Up to today I had no intention of voting. I couldn't bring myself to, but now to anyone who asks, I say if I vote, I will vote for Rohani," wrote another Iranian on Twitter.
With no independent, reliable opinion polls in Iran, it is hard to gauge the public mood, let alone the extent to which Khamenei and the powerful Revolutionary Guards will exert their influence over the ballot.
The election of little-known Tehran mayor Ahmadinejad as president in 2005 took many by surprise and there is no telling whether there will be a similar shock result this time round.
Jalili has run a strong campaign, but has been heavily criticised, even by fellow hardliners, for his intransigence in nuclear talks and for failing to stop the imposition of tough new sanctions. He is alone among the candidates in defending Iran's current robust, ideologically driven foreign policy.
The other main conservative candidates, while not necessarily disagreeing with the substance of Iran's present policies, have emphasised what they say will be their more inclusive domestic policies and more pragmatic style abroad.
Ali Akbar Velayati, a former foreign minister and adviser to Khamenei, has pledged to consult widely before taking decisions, while current Tehran mayor Mohammad Baqer Qalibaf has campaigned on his record of improving infrastructure in the capital.
Want to enjoy 'Zen' reading - with no ads and just the article? Subscribe todaySubscribe now