Spanish–Moro conflict
The Spanish initiated the conflict by conquering the Philippines and invading Moro territory in an effort to subjugate the region to their rule since the 1500s. When the Spanish conquered the Muslim Kingdom of Maynila, a vassal of the Sultanate of Brunei, the Islamic rajah, Rajah Sulayman resisted the Spanish. Manila then became the capital of the Spanish Philippines after the conquest, with the Spanish forcibly converting people to Catholicism. The Spanish–Moro Wars started with the Castille War, a war between Spaniards and the Sultanate of Brunei. (The term "Moro" at this time included Muslim Tagalogs who were ruled by the Sultanate of Brunei).
Spanish–Moro conflict
Koxinga's threat to invade the Philippines and expel the Spanish resulted in the Spanish failure to conquer the Islamic Moro people in Mindanao. The threat of Chinese invasion forced the Spanish to stop their conquest of the Moros and withdraw their garrisons to Manila. Koxinga's death resulted in the invasion being cancelled. The Spanish retreated occurred in 1663. Zamboanga and Mindanao became devoid of Spanish soldiers after the Chinese threat against Manila. The Chinese threat effectively destroyed the Spanish plan to conquer and colonize the Moros in Zamboanga. Governor Bobadilla was the one who conducted the evacuation. Mindanao was just about to be colonised by Christians before Koxinga's planned conquest of the Philippines destroyed the entire Spanish plan to conquer Mindanao. Iligan and Zamboanga were given up by the Spanish.