LONDON (Reuters) - Tehran Mayor Mohammad Baqer Qalibaf dropped out of Iran's presidential race on Monday and said he would back hardline cleric Ebrahim Raisi's bid to unseat President Hassan Rouhani in Friday's vote.
Qalibaf, a former Revolutionary Guards commander and police chief, was one of the main conservative challengers to Rouhani, a pragmatist seeking a second term.
Raisi's popularity has risen steadily in recent weeks and Qalibaf's move should give him a last-minute boost against Rouhani, who has eased Iran's international isolation though failed to spur a sluggish economy.
"I should take an important decision to keep the unity of revolutionary forces," Qalibaf said in a statement carried by state media. "I ask all my supporters around the country to use all their capacity to help my brother, Mr Ebrahim Raisi, win the election."
Qalibaf's allies had argued that he had more recognition in the capital Tehran and among young voters, and offered a more coherent economic plan than some other conservative candidates.
He was left with no option but to quit the race, however, when the main conservative parties and clerical bodies threw their support behind Raisi, a jurist and Shi'ite cleric who studied at the feet of Supreme Leader Ayatollah Ali Khamenei.
The news Qalibaf was standing down broke as Raisi was delivering a speech in Shiraz, thrilling his supporters. The crowd started chanting "Qalibaf, Thank you!" according to videos released on social media.
"I am also very thankful," Raisi replied to the crowd. "He did a revolutionary act."
Qalibaf finished second in the last election four years ago with 16.5 percent of the vote. Rouhani won just over 50 percent, averting a second round.
Some conservatives had been unhappy that Qalibaf was standing again and risking a split in the anti-Rouhani vote.
"The biggest fear of the conservatives was that Qalibaf may outperform Raisi on Friday, but not be able to pose a serious challenge, let alone beat Rouhani in the run-off," said Hossein Rassam, a former adviser to Britain's Foreign Office.
Rouhani has warned his supporters that Qalibaf and Raisi, whose backgrounds are in the Revolutionary Guards and Iran's hardline judiciary, will take the country back to "extremism".
He said on Monday he needed a stronger mandate to liberalise Iranian society, a big wish of his backers in 2013. On Friday, Rouhani accused his hardline clerical foes of being power-hungry pawns of Iran's security forces.
Hamid Aboutalebi, Rouhani's deputy chief of staff, said in a tweet that most of Qalibaf's supporters would now vote for Rouhani as only those two candidates had managerial experience and a solid governing plan.
"Qalibaf's votes will be divided between Rouhani and Raisi. In Tehran, his votes will go mainly to Rouhani but outside Tehran his supporters will vote for Raisi," said political analyst Hamid Farahvashian.
"However, I don't think there will be a significant impact as Qalibaf got (just) six million votes in 2013."
Only minutes after the news, posters appeared on conservative media showing the black-turbaned Raisi alongside Qalibaf, wearing a yellow safety helmet.
Analysts have said Raisi might name Qalibaf as his vice-president to appeal to technocrats, although neither of them has responded to such predictions.
"We will use Qalibaf's experiences and his managerial capabilities in the next government," Tasnim news agency quoted Raisi as saying on Monday. Raisi and Qalibaf were to appear together at a rally in Tehran on Tuesday.
The two adopted similar campaign tactics, criticising Rouhani's economic record - particularly high unemployment, which rose 1.4 percent last year to 12.4 percent - and his policy of detente with the West.
Both had promised to create 5-6 million jobs in their first terms, if elected, and to triple monthly cash handouts to Iran's poor, but have been criticised for not explaining how they would fund such undertakings.
"Raisi may not have a very strong vote bloc, but as some polls have suggested, his negative vote is smaller than Qalibaf's," said Hossein Rassam, now an independent analyst. "It is not just about the popularity...of a candidate, but (their) unpopularity too."
Additional reporting by Parisa Hafezi in Ankara; editing by Mark Heinrich