section_path: History/Spanish and American colonial rule (1565–1934)
section_name: Spanish and American colonial rule (1565–1934)
paragraph_text: Spanish and American colonial rule (1565–1934)
  
  Unification and colonization by the Crown of Castile began when Spanish explorer Miguel López de Legazpi arrived from New Spain (Spanish: Nueva España) in 1565. Many Filipinos were brought to New Spain as slaves and forced crew. Whereas many Latin Americans were brought to the Philippines as soldiers and colonists. Spanish Manila became the capital of the Captaincy General of the Philippines and the Spanish East Indies in 1571, Spanish territories in Asia and the Pacific. The Spanish invaded local states using the principle of divide and conquer, bringing most of what is the present-day Philippines under one unified administration. Disparate barangays were deliberately consolidated into towns, where Catholic missionaries could more easily convert their inhabitants to Christianity, which was initially Syncretist. Christianization by the Spanish friars occurred mostly across the settled lowlands over the course of time. From 1565 to 1821, the Philippines was governed as a territory of the Mexico City -based Viceroyalty of New Spain; it was then administered from Madrid after the Mexican War of Independence. Manila became the western hub of trans-Pacific trade by Manila galleons built in Bicol and Cavite.
  
  During its rule, Spain nearly bankrupted its treasury quelling indigenous revolts and defending against external military attacks, including Moro piracy, a 17th-century war against the Dutch, 18th-century British occupation of Manila, and conflict with Muslims in the south.
  
  Administration of the Philippines was considered a drain on the economy of New Spain, and abandoning it or trading it for other territory was debated. This course of action was opposed because of the islands' economic potential, security, and the desire to continue religious conversion in the region. The colony survived on an annual subsidy from the Spanish crown averaging 250,000 pesos, usually paid as 75 tons of silver bullion from the Americas. British forces occupied Manila from 1762 to 1764 during the Seven Years' War, and Spanish rule was restored with the 1763 Treaty of Paris. The Spanish considered their war with the Muslims in Southeast Asia an extension of the Reconquista. The Spanish–Moro conflict lasted for several hundred years; Spain conquered portions of Mindanao and Jolo during the last quarter of the 19th century, and the Muslim Moro in the Sultanate of Sulu acknowledged Spanish sovereignty.
  
  Philippine ports opened to world trade during the 19th century, and Filipino society began to change. Social identity changed, with the term Filipino encompassing all residents of the archipelago instead of solely referring to Spaniards born in the Philippines.
  
  Revolutionary sentiment grew in 1872 after 200 locally recruited colonial troops and laborers alongside three activist Catholic priests were executed on questionable grounds. This inspired the Propaganda Movement, organized by Marcelo H. del Pilar, José Rizal, Graciano López Jaena, and Mariano Ponce, which advocated political reform in the Philippines. Rizal was executed on December 30, 1896, for rebellion, and his death radicalized many who had been loyal to Spain. Attempts at reform met with resistance; Andrés Bonifacio founded the Katipunan secret society, which sought independence from Spain through armed revolt, in 1892.
  
  The Katipunan Cry of Pugad Lawin began the Philippine Revolution in 1896. Internal disputes led to the Tejeros Convention, at which Bonifacio lost his position and Emilio Aguinaldo was elected the new leader of the revolution. The 1897 Pact of Biak-na-Bato resulted in the Hong Kong Junta government in exile. The Spanish–American War began the following year, and reached the Philippines; Aguinaldo returned, resumed the revolution, and declared independence from Spain on June 12, 1898. In December 1898, the islands were ceded by Spain to the United States with Puerto Rico and Guam after the Spanish–American War.
  
  The First Philippine Republic was promulgated on January 21, 1899. Lack of recognition by the United States led to an outbreak of hostilities that, after refusal by the U.S. on-scene military commander of a cease-fire proposal and a declaration of war by the nascent Republic, escalated into the Philippine–American War.
  
  The war resulted in the deaths of 250,000 to 1 million civilians, primarily due to famine and disease. Many Filipinos were transported by the Americans to concentration camps, where thousands died. After the fall of the First Philippine Republic in 1902, an American civilian government was established with the Philippine Organic Act. American forces continued to secure and extend their control of the islands, suppressing an attempted extension of the Philippine Republic, securing the Sultanate of Sulu, establishing control of interior mountainous areas which had resisted Spanish conquest, and encouraging large-scale resettlement of Christians in once-predominantly-Muslim Mindanao.