Iraq's Prime Minister Adel Abdel Mahdi speaks during a symbolic funeral ceremony in Baghdad on October 23, 2019 for Major General Ali al-Lami, a commander of the Iraqi Federal Police's Fourth Division, who was killed the previous day in Samarra in the province of Salahuddin, north of the Iraqi capital. - The police commander was killed in an ambush on October 22 which Iraqi security forces blamed on dormant cells of the Islamic State (IS) group. (Photo by AHMAD AL-RUBAYE / AFP) (Photo by AHMAD AL-RUBAYE/AFP via Getty Images)
AHMAD AL-RUBAYE/AFP/AFP via Getty Images
Iraq's Prime Minister Adel Abdel Mahdi speaks during a symbolic funeral ceremony in Baghdad on October 23, 2019 for Major General Ali al-Lami, a commander of the Iraqi Federal Police's Fourth Division, who was killed the previous day in Samarra in the province of Salahuddin, north of the Iraqi capital. - The police commander was killed in an ambush on October 22 which Iraqi security forces blamed on dormant cells of the Islamic State (IS) group. (Photo by AHMAD AL-RUBAYE / AFP) (Photo by AHMAD AL-RUBAYE/AFP via Getty Images)
Now playing
01:37
Iraqi president: Prime minister has agreed to resign
screengrab hong kong oscars
IMDB / Field of Vision
screengrab hong kong oscars
Now playing
02:49
Hong Kong won't air Oscars for the first time since 1968
A split of Alexey Navalny and Vladimir Milov, one of his advisers.
CNN/Getty Images
A split of Alexey Navalny and Vladimir Milov, one of his advisers.
Now playing
02:50
'Absolutely disastrous': Navalny adviser on Navalny's medical test results
reality check john avlon
reality check john avlon
Now playing
02:59
Avlon: Will GOP still parrot Putin's disinformation post-Trump?
Reuters
Now playing
01:20
Firefighters battle flames in South African national park
Russian opposition leader Alexei Navalny delivers a speech during a demonstration in Moscow on September 29, 2019. - Thousands gathered in Moscow for a demonstration demanding the release of the opposition protesters prosecuted in recent months. Police estimated a turnout of 20,000 people at the Sakharov Avenue in central Moscow about half an hour after the start of the protest, which was authorised. The demonstrators chanted "let them go" and brandished placards demanding a halt to "repressions" of opposition protesters. (Photo by Yuri KADOBNOV / AFP) (Photo by YURI KADOBNOV/AFP via Getty Images)
YURI KADOBNOV/AFP/Getty Images
Russian opposition leader Alexei Navalny delivers a speech during a demonstration in Moscow on September 29, 2019. - Thousands gathered in Moscow for a demonstration demanding the release of the opposition protesters prosecuted in recent months. Police estimated a turnout of 20,000 people at the Sakharov Avenue in central Moscow about half an hour after the start of the protest, which was authorised. The demonstrators chanted "let them go" and brandished placards demanding a halt to "repressions" of opposition protesters. (Photo by Yuri KADOBNOV / AFP) (Photo by YURI KADOBNOV/AFP via Getty Images)
Now playing
02:09
Alexey Navalny 'close to death,' press secretary says
WINDSOR, ENGLAND - APRIL 17: The Duke of Edinburgh's coffin, covered with His Royal Highness's Personal Standard is carried to the purpose built Land Rover during the funeral of Prince Philip, Duke of Edinburgh at Windsor Castle on April 17, 2021 in Windsor, England. Prince Philip of Greece and Denmark was born 10 June 1921, in Greece. He served in the British Royal Navy and fought in WWII. He married the then Princess Elizabeth on 20 November 1947 and was created Duke of Edinburgh, Earl of Merioneth, and Baron Greenwich by King VI. He served as Prince Consort to Queen Elizabeth II until his death on April 9 2021, months short of his 100th birthday. His funeral takes place today at Windsor Castle with only 30 guests invited due to Coronavirus pandemic restrictions. (Photo by Adrian Dennis/WPA Pool/Getty Images)
Adrian Dennis/WPA Pool/Getty Images
WINDSOR, ENGLAND - APRIL 17: The Duke of Edinburgh's coffin, covered with His Royal Highness's Personal Standard is carried to the purpose built Land Rover during the funeral of Prince Philip, Duke of Edinburgh at Windsor Castle on April 17, 2021 in Windsor, England. Prince Philip of Greece and Denmark was born 10 June 1921, in Greece. He served in the British Royal Navy and fought in WWII. He married the then Princess Elizabeth on 20 November 1947 and was created Duke of Edinburgh, Earl of Merioneth, and Baron Greenwich by King VI. He served as Prince Consort to Queen Elizabeth II until his death on April 9 2021, months short of his 100th birthday. His funeral takes place today at Windsor Castle with only 30 guests invited due to Coronavirus pandemic restrictions. (Photo by Adrian Dennis/WPA Pool/Getty Images)
Now playing
02:29
See memorable moments from Prince Philip's funeral
ITN
Now playing
02:10
Princes Harry and William seen together at Prince Philip's funeral
Getty Images
Now playing
00:55
CNN anchor: We saw a Queen grieving
Getty Images
Now playing
03:00
The end of an era has arrived in Cuba
Cuban prime minister Fidel Castro talking with parents of some of the American prisoners held hostage for food and supplies by the Cuban government after the abortive emigre invasion at the Bay of Pigs, January 1963.
Keystone/Hulton Archive/Getty Images
Cuban prime minister Fidel Castro talking with parents of some of the American prisoners held hostage for food and supplies by the Cuban government after the abortive emigre invasion at the Bay of Pigs, January 1963.
Now playing
05:37
Remembering the Bay of Pigs invasion, 60 years later
Myanmar Bago killing Hancocks pkg intl hnk vpx_00002309.png
Myanmar Bago killing Hancocks pkg intl hnk vpx_00002309.png
Now playing
03:39
Eyewitnesses recount bloody crackdown in Bago, Myanmar
MAY LEWIS via Reuters
Now playing
00:49
Here's why this river turned white
Hong Kong national security education day Lu Stout W&T intl hnk vpx_00013016.png
Hong Kong national security education day Lu Stout W&T intl hnk vpx_00013016.png
Now playing
01:42
Hong Kong police showcase 'Chinese-style goose-stepping'
brazil coronavirus jair bolsonaro rio de janeiro Darlington pkg intl ldn vpx_00003012.png
AFP
brazil coronavirus jair bolsonaro rio de janeiro Darlington pkg intl ldn vpx_00003012.png
Now playing
02:43
Last week, coronavirus killed 3 people every minute in Brazil
WASHINGTON, DC - APRIL 15: U.S. President Joe Biden announces new economic sanctions against the Russia government from the East Room of the White House on April 15, 2021 in Washington, DC. Biden announced sanctions against 32 companies and individuals that are aimed at choking off lending to the Russian government and in response to the 2020 hacking operation that breached American government agencies and some of the nation's largest companies. (Photo by Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images
WASHINGTON, DC - APRIL 15: U.S. President Joe Biden announces new economic sanctions against the Russia government from the East Room of the White House on April 15, 2021 in Washington, DC. Biden announced sanctions against 32 companies and individuals that are aimed at choking off lending to the Russian government and in response to the 2020 hacking operation that breached American government agencies and some of the nation's largest companies. (Photo by Chip Somodevilla/Getty Images)
Now playing
06:49
Biden imposes new sanctions on Russia
(CNN) —  

Iraqi Prime Minister Adil Abdul Mahdi has agreed to resign after weeks of anti-government protests that led to hundreds of casualties, Iraq’s president announced Thursday.

In a televised speech to the nation on Iraq’s Al-Iraqiya TV, President Barham Salih said Abdul Mahdi had agreed to step down on the condition that a successor is agreed to replace him.

“The prime minister has agreed to resign,” Salih said, adding that Abdul Mahdi had asked “political blocs to reach an acceptable alternative” in order “to prevent a vacuum.”

Iraqi students and professors take part in ongoing anti-government protests in the central city of Diwaniyah on October 31.
HAIDAR HAMDANI/AFP via Getty Images
Iraqi students and professors take part in ongoing anti-government protests in the central city of Diwaniyah on October 31.

One of Iraq’s leading Shiite clerics and most powerful politicians, Muqtada al-Sadr, had called on other parties Tuesday to back his push for a no-confidence vote in Abdul Mahdi.

The protests, which have gripped parts of Iraq for the past month, were sparked by longstanding complaints over unemployment, government corruption, and a lack of basic services – such as electricity and clean water.

Many Iraqis blame the current political parties in power for their economic hardship and the scale of the protests, believed to be the biggest since the fall of Saddam Hussein in 2003, took the government by surprise.

Officials have attempted to regain control with the use of lethal force, while also imposing curfews and internet blackouts. The government said it only shoots when attacked, but those who have taken part in the demonstrations have disputed that.

More than 200 protestors have been killed, and thousands injured, since the protests began earlier this month.

Another wave of protests broke out in the capital Baghdad on Wednesday, made up of protesters from across the country’s ethnic and sectarian divides, Reuters reported.

The demonstrations turned violent at nightfall, and protestors attempted to storm a bridge leading to the heavily fortified Green Zone, Reuters reported.

The Green Zone includes the US embassy along with other foreign embassies, the Iraqi parliament building and other government buildings.

That day, a rocket landed 100 meters from the US embassy, killing an Iraqi soldier and wounding another, a senior Iraqi military officer told CNN.

Iraqi security forces are investigating the incident and trying to determine the launching point of the rocket.

On Thursday, the United Nations appealed for a national dialogue to ease the widespread anger.

“Democracy has given Iraqis the right to have their voices heard and to hold their leaders to account,” Jeanine Hennis-Plasschaert, the Special Representative of the United Nations Secretary-General for Iraq, said in a statement.

“Today Iraq stands at a crossroads. Progress through dialogue, or divisive inaction. Violence only breeds more violence. A public national dialogue can bring Iraqis together to draw a roadmap towards a more inclusive, stable and prosperous Iraq.”