Lebanon's prime minister announced his government's resignation on Monday, saying a huge explosion that devastated Beirut and triggered public outrage was the result of endemic corruption.

The Aug. 4 detonation at a port warehouse of what authorities said was more than 2,000 tonnes of ammonium nitrate killed at least 163 people, injured more than 6,000 and destroyed swathes of the Mediterranean capital, compounding months of political and economic meltdown.

"Today we follow the will of the people in their demand to hold accountable those responsible for the disaster that has been in hiding for seven years," Prime Minister Hassan Diab said in a speech announcing the resignation.