IRBIL, Iraq -- The Islamic State group blew up a historic landmark in Mosul -- the city's famed 12th century al-Nuri mosque with its iconic leaning minaret known as al-Hadba, from where the IS leader proclaimed the militant group's self-styled caliphate nearly three years ago.

The explosion destroyed another piece of priceless Iraqi cultural heritage but also sent a strong message to U.S.-led coalition forces and Iraqi troops closing in on the last stronghold of IS, in Mosul's Old City neighbourhood.

Iraq's Ministry of Defence said the militants detonated explosives planted inside the structures on Wednesday night. Prime Minister Haider al-Abadi tweeted early on Thursday that the destruction was an admission by the militants that they are losing the fight for Iraq's second-largest city.

"Daesh's bombing of the al-Hadba minaret and the al-Nuri Mosque is a formal declaration of their defeat," al-Abadi said, using the Arabic acronym for the Islamic State group.

"It is a shock, a real big shock," Amir al-Jumaili, a professor at the Archaeology College in Mosul told The Associated Press.

The al-Nuri mosque, which is also known as Mosul's Great Mosque, is where IS leader Abu Bakr al-Baghdadi made a rare public appearance, declaring a so-called Islamic caliphate in the summer of 2014, shortly after Mosul was overrun by the militants. The minaret that leaned like Italy's Tower of Pisa had stood for more than 840 years.

The IS blew up the mosque during the celebrations of Laylat al Qadr, the holiest night of the year for Muslims. The "Night of Power" commemorates the night the Qur'an was revealed to the Prophet Muhammad during the Muslim holy month of Ramadan, which is now underway.

An IS statement posted online shortly after the Ministry of Defence reported the mosque's destruction blamed an airstrike by the United States for the loss of the mosque and minaret.

The U.S.-led coalition rejected the IS claim. Spokesman, U.S. Army Col. Ryan Dillon told the Associated Press coalition planes "did not conduct strikes in that area at that time."

IS fighters initially attempted to destroy the minaret in July 2014. The militants said the structure contradicted their fundamentalist interpretation of Islam, but Mosul residents converged on the area and formed a human chain to protect it. IS has demolished dozens of historic and archaeological sites in and around Mosul, saying they promoted idolatry.

Earlier this month, Mosul residents reported IS fighters had begun sealing off the area around the mosque. Residents said that IS fighters ordered families living in the area to leave -- likely in preparation for the militants' final stand.

"This is a crime against the people of Mosul and all of Iraq, and is an example of why this brutal organization must be annihilated," U.S. Maj. Gen. Joseph Martin, the commander of coalition ground forces in Iraq, said in a written statement.

"The responsibility of this devastation is laid firmly at the doorstep of ISIS," he added. ISIS is another acronym for the Islamic State group.

The mosque sat at the heart of the Old City, the last IS stronghold in Mosul. Iraqi forces launched a push into the Old City earlier this week, but have made slow progress as the last IS fighters there are holed up with an estimated 100,000 civilians according to the United Nations.

The United Nations special envoy to Iraq, Jan Kubis, said the destruction "is a clear sign" of the IS group's imminent collapse.

"This latest barbaric act of blowing up a historic Islamic site adds to the annals of Daesh's crimes against Islamic, Iraqi and human civilization," Kubis said in a statement. "The destruction ... shows their desperation and signals their end."

Brett McGurk, the U.S. envoy for the global coalition against IS, also criticized the destruction at the hands of the militants, describing it as "a very significant moment," in comments Thursday at an annual security and policy conference in Herzliya, Israel.

"Late yesterday, as Iraqi security forces closed in on that mosque about a hundred meters away, ISIS blew it up, a mosque that sat there since the 12th century, ISIS blew it up," McGurk said.

The fight to retake Mosul was launched more than eight months ago and has displaced more than 850,000 people. While Iraqi forces have experienced periods of swift gains, combat inside the city has largely been grueling and deadly for both Iraqi forces and civilians.

Al-Jumaili, the archaeology professor, said he long feared the destruction of the mosque and minaret was inevitable.

"It was the last icon for the historic city of Mosul and a valuable symbol," he said. "I am sure Mosul residents could not sleep last night."

------

Associated Press writer Sinan Salaheddin in Baghdad and Lolita Baldor in Washington contributed to this report.