Huge crowds have packed the streets of the Iranian capital Tehran for the funeral of Iranian military commander Qasem Soleimani.

Soleimani was assassinated in a US drone strike in Iraq on Friday on the orders of President Donald Trump.

Iran’s Supreme Leader Ayatollah Khamenei led prayers and at one point was seen weeping.

Iran has vowed “severe revenge” for the death of Soleimani and on Sunday pulled back from the 2015 nuclear accord.

Soleimani, 62, headed Iran’s elite Quds Force, and was tasked with protecting and boosting Iran’s influence in the Middle East.

He supported Syria’s President Bashar al-Assad in the country’s civil conflict, aided the Shia militant group Hezbollah in Lebanon, and guided Iraqi militia groups against the Islamic State group.

Soleimani was hailed as a national hero in Iran and widely considered the second most powerful man in the country behind Supreme Leader Khamenei.

The US saw him as a terrorist, and President Trump said Soleimani was plotting “imminent” attacks on US diplomats and military personnel.

What happened at Soleimani’s funeral?

State television showed huge crowds in Tehran for the event. It put the number who turned out as “millions” although this is yet to be verified.

Some people cried, while others clutched pictures of the late commander. Mourners passed Soleimani’s coffin over their heads and “death to America” chants were heard.

His daughter Zeinab Soleimani warned the US that it faced a “dark day”.

“Crazy Trump, don’t think that everything is over with my father’s martyrdom,” she said.

Following Monday’s funeral, the general’s remains were taken to Qom, one of the centres of Shia Islam, for a ceremony ahead of a burial in his hometown of Kerman on Tuesday.

How has Trump reacted?

Following warnings from Iran, Mr Trump said that the US would respond in the event of retaliation for Soleimani’s death, “perhaps in a disproportionate manner”.

He repeated a threat to target Iranian cultural sites, saying the US would “strike very fast and very hard” if Tehran attacked Americans or US assets.

President Trump also threatened severe sanctions against Iraq if US troops left.

“We have a very extraordinarily expensive airbase that’s there. It cost billions of dollars to build. We’re not leaving unless they pay us back for it,” he told reporters.

The president on Monday also responded to Iran’s decision to no longer abide by the restrictions of the international nuclear deal, tweeting: “Iran will never have a nuclear weapon!”