Baghdad: Iraq’s senior cleric on Friday urged political leaders to refrain from clinging to their posts - an apparent reference to Prime Minister Nouri Al Maliki, who has defied demands that he step aside.

Speaking through an aide who delivered a sermon after Friday prayers in the holy city of Karbala, Grand Ayatollah Ali Al Sistani said leaders should show flexibility so that political deadlocks could be broken and Iraq could confront militants.

Last month, militants from the Islamic State of Iraq and the Levant (Isil) swept through northern and western Iraq, posing the biggest challenge to Al Maliki’s Shiite-led government since the departure of US forces in 2011.

Critics say Al Maliki is a divisive figure whose alienation of Sunnis has fueled sectarian hatred and played into the hands of the insurgents, who have threatened to march on Baghdad.

Al Sistani said it is time for politicians to think of Iraq’s interests, not their own.

“The sensitivity of this phase necessitates that all the parties concerned should have a spirit of national responsibility that requires the practice of the principle of sacrifice and self denial and not to cling to positions and posts.” Al Maliki, a Shiite, has ruled since an election in April in a caretaker capacity, dismissing demands from the Sunnis and Kurds that he step aside for a less polarising figure. Even some Shiites oppose his bid for a third term.

Iraq’s parliament elected senior Kurdish lawmaker Fouad Masoum as president on Thursday, a long-awaited step in creating a new government capable of countering the insurgency.

Politicians have been in deadlock over forming a new government since the election. The next step, choosing a prime minister, may prove far more difficult as Al Maliki digs in.

Al Sistani’s call for flexibility could hasten his departure as he is seen as a voice of reason in the deeply divided country.

A recluse who favours a behind-the-scenes role, he has called for Iraqis to take up arms against the Sunni insurgency.

The insurgents, who changed their name to the Islamic State and declared a caliphate in parts of Iraq and Syria, have put Iraq’s survival as a unified state in jeopardy. The army virtually collapsed in the face of their lightning advance.

Sectarian militias and Kurdish peshmerga fighters have become a a critical line of defence against the Isil as the militants set their sights on the capital.

US military and Iraqi security officials estimate the Isil has at least 3,000 fighters in Iraq, rising towards 20,000 when new recruits since last month’s advance are included.

Aside from military campaigns, insurgents have been stamping out any religious or cultural influences they deem non-Islamic.

On Friday, the group warned women in the city of Mosul to wear full-face veils or risk severe punishment.

“The conditions imposed on her clothes and grooming was only to end the pretext of debauchery resulting from grooming and overdressing,” said the Islamic State in a statement.

“This is not a restriction on her freedom but to prevent her from falling into humiliation and vulgarity or to be a theater for the eyes of those who are looking.” A cleric in Mosul told Reuters that Islamic State gunmen had shown up at his mosque and ordered him to read their warning on loudspeakers when worshipers gather.

“Anyone who is not committed to this duty and is motivated by glamour will be subject to accountability and severe punishment to protect society from harm and to maintain the necessities of religion and protect it from debauchery,” said the Isil.