Philippine President Rodrigo Duterte declared martial law in Mindanao, following the Maute's attack in Marawi.

The siege of Marawi (Filipino: Pagkubkob sa Marawi), also known as the Marawi crisis (Krisis sa Marawi), and the Battle of Marawi (Labanan sa Marawi), was a five-month-long armed conflict in Marawi, Philippines, that started on May 23, 2017, between Philippine government security forces and militants affiliated with the Islamic State (IS), including the Maute and Abu Sayyaf Salafi jihadist groups. The battle also became the longest urban battle in the modern history of the Philippines.According to the Philippine government, the clashes began during an offensive in Marawi to capture Isnilon Hapilon, the leader of the IS-affiliated Abu Sayyaf group, after receiving reports that Hapilon was in the city, possibly to meet with militants of the Maute group. A deadly firefight erupted when Hapilon's forces opened fire on the combined Army and police teams and called for reinforcements from the Maute group, an armed group that pledged allegiance to the Islamic State and which is believed to be responsible for the 2016 Davao City bombing, according to military spokesmen.Maute group militants attacked Camp Ranao and occupied several buildings in the city, including Marawi City Hall, Mindanao State University, a hospital and the city jail. They also occupied the main street and set fire to Saint Mary's Cathedral, Ninoy Aquino School and Dansalan College, run by the United Church of Christ in the Philippines (UCCP). The militants also took a priest and several churchgoers hostage.The Armed Forces of the Philippines stated that some of the terrorists were foreigners who had been in the country for a long time, offering support to the Maute group in Marawi. Their main objective was to raise an ISIL flag at the Lanao del Sur Provincial Capitol and declare a wilayat or provincial IS territory in Lanao del Sur.On October 17, 2017, the day after the deaths of militant leaders Omar Maute and Isnilon Hapilon, President Duterte declared Marawi was "liberated from terrorist influence". Then on October 23, 2017, Defense Secretary Delfin Lorenzana announced that the five-month battle against the terrorists in Marawi had finally ended.

Rodrigo Roa Duterte (; Tagalog: [roˈdɾigo ɾowa dʊˈtɛɾtɛ] (listen); born March 28, 1945), also known as Digong, Rody and by the initials PRRD, is a Filipino politician who is the 16th and incumbent president of the Philippines. He is the chairperson of PDP–Laban, the ruling political party in the Philippines. Duterte is the first president of the Philippines to be from Mindanao and is the oldest, beginning his term at age 71; the record was previously held by Sergio Osmeña at the age of 65.Born in Maasin, Leyte (now in Southern Leyte), Duterte moved to Davao as a child where his father, Vicente Duterte, served as provincial governor. He studied political science at the Lyceum of the Philippines University, graduating in 1968, before obtaining a law degree from San Beda College of Law in 1972. He then worked as a lawyer and was a prosecutor for Davao City, before becoming vice mayor and, subsequently, mayor of the city in the wake of the 1986 People Power Revolution. Duterte won seven terms and served as mayor of Davao for over 22 years.

Duterte's 2016 presidential campaign led to his election victory. During his presidency, his domestic policy has focused on combating the illegal drug trade by initiating the controversial war on drugs, fighting crime, and corruption, launching a massive infrastructure plan and a proposed shift to a federal system of government. He also oversaw the controversial burial of Ferdinand Marcos, the 2017 Battle of Marawi and the government's response to the COVID-19 pandemic. He declared the intention to pursue an "independent foreign policy", and strengthened relations with China and Russia. He initially announced his candidacy for vice president in the 2022 election, but in October 2021, he announced that he was retiring from politics. On November 15, 2021, he filed his candidacy for Senator but withdrew it in December 14.His political positions have been described as populist and nationalist. Duterte's political success has been aided by his vocal support for the extrajudicial killing of drug users and other criminals. His career has sparked numerous protests and attracted controversy, particularly over human rights issues and his controversial comments. Duterte has repeatedly confirmed to have personally killed criminal suspects during his term as mayor of Davao. Extrajudicial killings were allegedly committed by the Davao Death Squad between 1998 and 2016 during Duterte's mayoralty have also been scrutinized by human rights groups and the Office of the Ombudsman; the victims were mainly alleged drug users, alleged petty criminals, and street children. The International Criminal Court opened a preliminary investigation into Duterte's drug war in 2018, prompting Duterte to withdraw the Philippines from the body in response. He is the only president in the Philippines not to declare his assets and liabilities.