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).
Pangasinan
On April 27, 1565, the Spanish conquistador Miguel López de Legazpi arrived in the Philippine islands with about 500 soldiers to establish a Spanish settlement and begin the conquest of the archipelago. On May 24, 1570, the Spanish forces defeated Rajah Sulayman and other rulers of Manila and later declared Manila as the new capital of the Spanish East Indies. After securing Manila, the Spanish forces continued to conquer the rest of the island of Luzon, including Pangasinan.