DUBAI (Reuters) -Many thousands of mourners packed the streets of the Iranian holy city of Mashhad on Thursday for the funeral of President Ebrahim Raisi, who was killed four days ago in a helicopter crash, footage broadcast by Iranian media showed.

Raisi, 63, was widely seen as a candidate to succeed 85-year-old Supreme Leader Ali Khamenei, who wields ultimate power in Iran. Mohammad Mokhber, who had been first vice president, is serving as interim president until a June election.

Flowers were thrown at his coffin as it moved slowly aboard a truck through throngs of mourners to be buried at the gold-domed Imam Reza shrine, Iran's holiest Islamic site and revered as the resting place of the 9th century Imam Ali al-Reza. Raisi hailed from Mashhad, 900 km (560 miles) east of Tehran.

Earlier, thousands had paid their respects as his coffin was driven in a motorcade through the eastern city of Birjand.

Eight passengers and crew were killed when the helicopter crashed in mountainous terrain near the Azerbaijan border. They included foreign minister Hossein Amirabdollahian.

Iran proclaimed five days of mourning for Raisi, who enacted the hardline policies of his mentor Khamenei aimed at entrenching clerical power, cracking down on opponents, and adopting a tough line on foreign policy issues such as nuclear talks with Washington to revive Iran's 2015 nuclear pact.

The presidential election has been scheduled for June 28.

A ceremony was held to commemorate Amirabdollahian at the foreign ministry in Tehran, where acting Foreign Minister Ali Bagheri Kani described him as a martyr who had "guaranteed the revolutionary nature of the foreign ministry".

Amirabdollahian was buried south of Tehran in Rey city's Shah Abdolazim shrine, a mausoleum where notable Iranian politicians and artists are buried.

(Reporting by Dubai Newsroom; Editing by Tom Perry, William Maclean)