CLARK, Philippines — The last militants in the city of Marawi, Philippines, were declared “finished” on Monday, ending a five-month siege that raised worry of the group gaining a foothold in Southeast Asia.

The Philippines’ defense secretary, Delfin Lorenzana, said the defeat of pro-Islamic State group militants in Marawi helps prevent the spread of extremism in Asia. Some of the militants were from other countries, including Malaysia.

He made the declaration after the last group of gunmen were found dead.

Defense News and Military Times have been covering the situation in the Philippines and offering analysis surrounding the Islamic State group’s presence in the region:

More In Asia Pacific