Islam made it to the Philippines before Spain arrived with Christianity. Some Filipinos became Muslims first in the late 14th century due to traders from the Persian Gulf and India.
As a result of the Spanish-American War, Spain lost control over the Philippines. Native Filipinos tried to establish a new republic but America defeated them in the Philippine–American War. The Philippines would remain a territory of the United States until 1946.
The Philippines were named after King Phillip II of Spain. In Spanish the island is spelled and pronounced Filipinas as in Spanish the name Phillip is actually spelled and pronounced Felipe. Which is the reason why the name for the people of Philippines is spelled Filipinos instead of with a “Ph”.
The Philippines get its name from King Phillip II of Spain who was honored with the namesake by explorers while he was still a prince.
The Battle of Marawi was a five-month long battle in 2017 between the Philippines and agents of ISIL who tried to take the Filipino city of Marawai (which is predominantly Muslim) as their own. The Filipino government emerged victorious with almost all of the thousand ISIL enemies there were killed.