Tehran: President Hassan Rouhani said on Wednesday that Iran would do whatever it takes to protect revered Shiite holy sites in Iraq against Sunni militants fighting the Baghdad government.

“Dear Karbala, Dear Najaf, Dear Kadhimiyah and Dear Samarra, we warn the great powers and their lackeys and the terrorists, the great Iranian people will do everything to protect them,” he said, naming the sites of the shrines in an emotive speech in Khoramabad, near the Iraq border.

Rouhani on Saturday pledged to help the Iraqi Prime Minister Nouri Al Maliki’s government if it asked for assistance, though at that time no such request had been forthcoming.

In his speech on Wednesday, Rouhani mentioned petitions signed by Iranians who said they were willing to fight in Iraq “to destroy the terrorists and protect the holy sites”, which are visited by hundreds of thousands of Iranian pilgrims annually.

“Thank God there are enough volunteers Shiites, Sunnis and Kurds in Iraq to fight the terrorists,” he added.

Iran is 90 per cent Shiite. Al Maliki, a Shiite, spent years in exile in Iran when dictator Saddam Hussain was in power in Baghdad.

The major Shiite shrines in Iraq are in Najaf and Karbala, south of the capital, in the district of Kadhimiyah in Baghdad and in Samarra to the north, which the militants have made repeated, but so far unsuccessful, efforts to enter.

At least 5,000 Iranians have pledged online to defend Iraq’s Shiite shrines against the Sunni extremists, a conservative news website in Iran reported on Tuesday.