Islamic State militants have blown up the Grand al-Nuri Mosque of Mosul and its famous leaning minaret, an Iraqi military statement said.

It was from this medieval mosque that the militants' leader Abu Bakr al-Baghdadi declared a self-styled ''caliphate'' spanning parts of Syria and Iraq three years ago.

Islamic State's Amaq news agency accused American aircraft of destroying the mosque.

"The Daesh (Islamic State) terror gangs committed another historical crime by blowing up the al-Nuri mosque and its historical al-Hadba minaret," the Iraqi military statement said.

The explosions happened as Iraq's elite Counter Terrorism Service units, which have been battling their way through Mosul's Old City, got to within 50 meters of the mosque, the statement said.

Iraqi forces earlier said they had started a push towards the mosque. A US-led coalition is providing air and ground support to the Mosul offensive which began in October 2016.

The forces on Tuesday encircled the jihadist group's stronghold in the Old City, the last district under their control in Mosul.

Al-Baghdadi proclaimed himself "caliph", or ruler of all Muslims, from the pulpit of the mosque on July 4, 2014, after the insurgents overran parts of Iraq and Syria. His black flag had been flying over its leaning minaret since June 2014.

Iraqi officials had privately expressed the hope that the mosque could be captured in time for Eid al-Fitr, the festival marking the end of Ramadan, the Muslim fasting month. The first day of the Eid falls this year on June 25 or 26 in Iraq.

The fall of Mosul would, in effect, mark the end of the Iraqi half of the "caliphate" even though Islamic State would continue to control territory west and south of the city, the largest they had control of in both Iraq and Syria.

Baghdadi has left the fighting in Mosul to local commanders and is believed to be hiding in the border area between Iraq and Syria, according to US and Iraqi military sources.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.