CAIRO/TEHRAN - US Secretary of State John Kerry said Saturday Egypt was on the frontline against “terrorism” after meeting its leadership to garner support to fight militants in Iraq and Syria.

Egypt’s formidable army is unlikely to take part in a military coalition against the Islamic State (IS) militants, but it has closely cooperated with the United States on counter-terrorism.

The Arab world’s most populous state boasts the prestigious authority Al-Azhar which Kerry said would fight back against the Islamic State’s use of the religion.

Washington says it is “at war” with IS and has named John Allen, a hawkish former commander in Afghanistan and Iraq, to coordinate its campaign against the movement that has seized large chunks of Iraq and neighbouring Syria.

Kerry, who flew in from Ankara, held talks with President Abdel Fattah al-Sisi after meeting Arab League chief Nabil al-Arabi.

Cairo’s involvement in the coalition may help to soothe its relations with Washington, after the United States suspended - then restored - military aid when the army ousted elected Islamist president Mohamed Morsi in July 2013.

Morsi’s successor, the former army chief Sisi, is fighting Islamist militants in the restive Sinai Peninsula who have expressed support for the Islamic State.

“Egypt is on the frontline of the fight against terrorism, particularly when it comes to fighting extremist groups in Sinai,” Kerry told a news conference with Foreign Minister Sameh Shoukri. After securing the backing of 10 Arab governments this week, Washington is seeking a stamp of approval for its campaign from Egypt and its religious institutions, which include Al-Azhar university.

“As an intellectual and cultural capital in the Muslim world, Egypt has a critical role to play in publicly denouncing the ideology that ISIL disseminates,” Kerry said, using another acronym by which IS is known.

Kerry said he also had a “frank” discussion on human rights concerns in Egypt amid a bloody crackdown on the government’s opponents, and the jailing of three Al-Jazeera television journalists and secular dissidents.

Despite Washington saying it is “at war” with IS, Kerry has been reluctant to use the term, speaking instead of a “major counter-terrorism operation”.

On Friday, French President Francois Hollande travelled to Baghdad for talks ahead of an international conference on Iraq in Paris on Monday.

Kerry was in neighbouring Turkey to address the threat posed by the militants, who seized much of the Sunni Arab heartland north and west of Baghdad in June.

In Ankara, Kerry spoke of “a broad-based coalition with Arab nations, European nations, the United States and others”. Turkey is a fellow NATO member but has so far refused to open its air bases to US forces and other members of the coalition. A Turkish official told AFP that Ankara’s hands were tied by concern for 49 Turks, including diplomats and their children, kidnapped when IS seized Iraq’s second city Mosul in June.

In Jeddah on Thursday, Kerry gained the support of 10 Arab nations for the push to weaken IS, whose appeal has drawn volunteers from around the world.

But Washington has insisted it will not work with President Bashar al-Assad of Syria, where three and a half years of conflict has allowed the emergence of IS, the most violent and powerful group in modern jihad.

It has carried out a spate of atrocities in areas it controls, including attacks on ethnic and religious minorities, and beheadings of American journalists and enemy soldiers,

Meanwhile, the secretary of Iran’s Supreme National Security Council accused the United States on Saturday of violating the sovereignty of nations on the “pretext of fighting terrorism” in Iraq and Syria.

“On the pretext of fighting terrorism, the United States want to pursue their unilateral policies and violate the sovereignty of states,” Ali Shamkhani said, quoted by the official IRNA news agency. He said Washington was “trying to divert the eyes of the world from its pivotal role in supporting and equipping the terrorists in Syria in a bid to topple the legitimate regime.”