Instruct: Given a question, retrieve relevant documents that answer the question.
Query: Did the Spanish invade the Philippines?
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).
The Philippines failed to win international recognition of its independence, including the United States of America or Spain. The Spanish government later ceded the Philippine archipelago to the United States in the 1898 Treaty of Paris. The Philippines Revolutionary Government did not recognize the treaty and the two sides subsequently fought in what was known as the Philippine–American War.
An early opportunity for Spain to enter China presented itself when the Chinese pirate Limahong attacked Manila in 1574. As Limahong was wanted by the Chinese authorities, officials in Fujian province were willing to let the Spanish establish a trade port on an island south of Xiamen in return for Limahong's capture. However, the governor of the Philippines at the time did not respond favourably, and the offer came to nothing when Limahong escaped from Manila. In the 1590s, the need for a Spanish base in China gained new urgency as Japan, ruled by the militant regent Toyotomi Hideyoshi, invaded Korea and threatened to conquer Ryukyu, China, Taiwan, and the Spanish Philippines. The "San Felipe" incident of 1596 and the subsequent execution of Franciscan friars in Nagasaki all but confirmed Japan's hostile intentions in Spanish eyes, and even the death of Hideyoshi in 1598 did not alleviate these fears. Thus, in 1598, governor Francisco de Tello de Guzmán sent Juan de Zamudio to the coast of China not only to establish trade, but also to warn Chinese authorities of possible Japanese aggression in its southern coast.
On December 10, 1898, on the other hand, the war between United States and Spain was concluded with Spain giving up all rights to Cuba and surrendering the Philippines, Guam and Puerto Rico to the United States. Two days later, Aguinaldo ordered his lawyer Felipe Agoncillo to contest the Philippine status as an independent nation and no longer a Spanish colony since the declaration of independence on June 12, 1898. However, the United States did not recognize Philippine sovereignty and announced their interest to annex the country by January 1899. This brought into serious foreign conflict when the Republic was formally established in January 23 at Malolos. By January 30, Aguinaldo resent Agoncillo, this time to the United States Senate, so as to reconsider their plans to annex the country and instead formally recognize Filipino independence.
In September 1762, the British invaded the Philippines and took over the Spanish main naval base in Manila Bay. This prompted the Spanish military to scout for the next promising naval station. The expedition returned with the good news for the naval command - a natural bounty and deep waters at Subic Bay. King Alfonso XII issued a decree in 1884 that declared Subic as "a naval port and the property appertaining thereto set aside for naval purposes." Construction of an arsenal and ship repair yard ensued March 8 the following year, as ordered by the new settlers' Naval Commission. Subic Bay's potential as naval station was realized by the Americans. Commodore George Dewey and his men engaged in a battle that destroyed the Spanish Army in 1898, and the Americans took over Subic Bay on December 10, 1899.
The Philippine Revolutionary Government did not recognize the treaty or American sovereignty, and subsequently fought and lost a conflict with the United States originally referred to by the Americans as the "Philippine Insurrection" but now generally and officially called the Philippine–American War, which ended when Emilio Aguinaldo was captured by U.S. forces, and issued a statement acknowledging and accepting the sovereignty of the United States over the Philippines. This was then followed on July 2, 1902, by U.S. Secretary of War Elihu Root telegraphing that the insurrection the United States had come to an end and that provincial civil governments had been established everywhere except those areas inhabited by Moro tribes. Pockets of resistance continued for several years.
After the Moors lost control of Spain, King Philip II made treaties with them allowing them to practice their religion if they gave up their sovereignty, signing the Treaty of Granada in 1491. The Catholic monarchs however, abrogated the treaties and threatened to expel the Moors if they did not become Christians. The Moors did so, but continued speaking Arabic, and using Aljamiado alphabet for spoken Spanish. Some followed Islam in secret (Crypto-Islam). They were later referred to as "Moriscos", Moors and their descendants who converted to Christianity rather than be expelled. Religious conversion was simply not enough for the Catholic monarchs. Phillip II implemented a policy to fully assimilate the Moriscos into the Christian Spanish population and eliminate Moorish and Arab culture from Spain. The Moriscos were forced to abandon their Arabic names and adopt a completely Hispanized heritage and give up their children to be educated by priests. Philip II also made speaking Arabic illegal in the kingdom, ordered all Arabic texts to be burned, and banned Moorish attire. After a failed revolt by Morisco leader Aben Humeya (or Ibn Umayyah) in 1568, the Christian monarchs expelled the Moriscos from Spain. Many of these Moriscos headed for North Africa, mainly in Morocco, where many of their descendants settled.
Spain, it has been observed, is a nation-state born out of religious struggle mainly between Catholicism and Islam, but also against Judaism (and, to a lesser extent, Protestantism). The Reconquista against Al Andalus (ending in 1492), the establishment of the Spanish Inquisition (1478) and the expulsion of Jews (1492) were highly relevant in the union of Castile and Aragon under the "Catholic Monarchs" Isabel and Fernando (1492), followed by the persecution and eventual expulsion of the Moriscos in 1609. The Counter-Reformation (1563–1648) was especially strong in Spain and the Inquisition was not definitively abolished until 1834, thus keeping Islam, Judaism, Protestantism and parts of Enlightenment at bay for most of its history.
Ancient Malaysian and Indonesian cultures and civilizations in ancient Malaya, Sumatra and Java influenced the history, lifestyles, and culture of the Filipino peoples. The Malay language, along with Philippine languages belonging to the Malayo-Polynesian language family, has also had an immense influence on many languages spoken in the Philippines. This is because Old Malay used to be the lingua franca throughout the archipelago, a good example of this is Magellan's translator Enrique using Malay to converse with the native "Sugbuanon" (Cebuano) during this time period.
The Bourbon monarchs sought the expansion of scientific knowledge, which had been urged by Benedictine monk Benito Feijóo. From 1777 to 1816, the Spanish crown funded scientific expeditions to gather information about the potential botanical wealth of the empire. When Prussian scientist Alexander von Humboldt proposed a self-funded scientific expedition to Spanish America, the Spanish crown accorded him not only permission, but the instructions to crown officials to aid him. Spanish scholars sought to understand the decline of the Spanish empire from its earlier glory days, with the aim of reclaiming its former prestige. In Spanish America, the Enlightenment also had an impact in the intellectual and scientific sphere, with elite American-born Spanish men involved in these projects. The Napoleonic invasion of the Iberian peninsula was enormously destabilizing for Spain and the Spanish overseas empire. The ideas of the Hispanic Enlightenment have been seen as a major contributor to the Spanish American wars of independence, although the situation is more complex.
Philip II, through his mother Isabella of Portugal also a grandson of Manuel I, did not recognize Antonio as king of Portugal. 
The king appointed Fernando, Duke of Alba, as captain general of his army. The duke was 73 years old and ill at the time. Fernando mustered his forces, estimated at 20,000 men, in Badajoz, and in June 1580 crossed the Spanish-Portuguese border and moved to Lisbon. In late August he defeated a Portuguese army at the Battle of Alcântara and entered Lisbon. This cleared the way for Philip II who became Philip I of Portugal, and created a dynastic union spanning all of Iberia under the Spanish crown.
In 1866, Leopold instructed the Belgian ambassador in Madrid to speak to Queen Isabella II of Spain about ceding the Philippines to Belgium. Knowing the situation fully, the ambassador did nothing. Leopold quickly replaced the ambassador with a more sympathetic individual to carry out his plan. In 1868, when Isabella II was deposed as queen of Spain, Leopold tried to press his original plan to acquire the Philippines. But without funds, he was unsuccessful. Leopold then devised another unsuccessful plan to establish the Philippines as an independent state, which could then be ruled by a Belgian. When both of these plans failed, Leopold shifted his aspirations of colonisation to Africa.
The Portolà expedition was the beginning of a push by Spain to explore the northwestern frontier of Las Californias, and to establish both military outposts and missions. The move was intended to counter what were thought to be colonial designs by Russian traders from Alaska and the British fur companies in the Pacific Northwest. (See: Fort Ross, Russian-American Company, Hudson's Bay Company) The Portolà expedition was organized by the "Visitadór Generàl" of New Spain, José de Gálvez, following up (belatedly) on previous maritime expeditions, most notably that of Sebastián Vizcaíno in 1602-3, who visited and described many points along the coast, including Monterey Bay, Portolà's primary destination.
The first Muslim invasion of southern Spain came in 711 AD at or near Gibraltar. At Almuñécar, the town remembers 15 August 755 when Umayyad Abd ar-Rahman I of Damascus, the founder of the Emirate of Cordoba, arrived from North Africa to establish his Moorish kingdom. The Moors introduced the growing of sugar cane and sustained the fishing industry; many of the streets and buildings of the old town were developed by the Moors. The castle remained the stronghold of the city and the seat of government and its walls were strengthened. Extensive dungeons were built for those out of favour with local rulers, but also baths for the use of the social elite.
The Spanish Inquisition (Inquisición Española) can be interpreted as a response to the multi-religious nature of Spanish society following the reconquest of the Iberian Peninsula from the Muslim Moors. After invading in 711, large areas of the Iberian Peninsula were ruled by Muslims until 1250, when they were restricted to Granada, which fell in 1492. However, the Reconquista did not result in the total expulsion of Muslims from Spain, since they, along with Jews, were tolerated by the ruling Christian elite. Large cities, especially Seville, Valladolid and Barcelona, had significant Jewish populations centered in Juderia, but in the coming years the Muslims were increasingly subjugated by alienation and torture.
In 1492, the arrival of Christopher Columbus on a Castilian-paid expedition paved the way for the Spanish colonization of the Americas. As a result of this process, most countries in South America now speak the same language as Castile. Until about the eighteenth century, the Kingdom of Castile, and not Spain as a whole, was the colonizing power, and the language used was called "castellano". Thus, some Latin American countries formerly under Spanish rule have retained the custom of calling it "castellano", while others eventually switched to calling it "español", with many different factors influencing the final choice.
The present territory of Davao Oriental was covered by the historical region of Caraga, which was under the Sultanate of Maguindanao. The Spaniards established a permanent settlement in the region in 1591, and in 1844, the area was ceded by the Sultanate to Spain. An expedition was sent by the colonial government in Manila in 1847 to control the region, led by the Spaniard Jose Oyanguren, who settled in the town of Davao and organized the surrounding areas into the province of Nueva Guipozcoa in 1849. The province existed until 1858, when the politico-military "commandancia"s of Davao and Bislig were created in its place. Bislig was incorporated into the District of Davao two years later.
When Democrat Woodrow Wilson became U.S. president in 1913, new policies were launched designed to gradually lead to Philippine independence. In 1902 U.S. law established Filipinos citizenship in the Philippine Islands; unlike Hawaii in 1898 and Puerto Rico in 1918, they did not become citizens of the United States. The Jones Law of 1916 became the new basic law, promised eventual independence. It provide for the election of both houses of the legislature.In socio-economic terms, the Philippines made solid progress in this period. Foreign trade had amounted to 62 million pesos in 1895, 13% of which was with the United States. By 1920, it had increased to 601 million pesos, 66% of which was with the United States. A health care system was established which, by 1930, reduced the mortality rate from all causes, including various tropical diseases, to a level similar to that of the United States itself. The practices of slavery, piracy and headhunting were suppressed but not entirely extinguished.
A new educational system was established with English as the medium of instruction, eventually becoming a "lingua franca" of the Islands. The 1920s saw alternating periods of cooperation and confrontation with American governors-general, depending on how intent the incumbent was on exercising his powers vis-à-vis the Philippine legislature. Members to the elected legislature lobbied for immediate and complete independence from the United States. Several independence missions were sent to Washington, D.C. A civil service was formed and was gradually taken over by Filipinos, who had effectively gained control by 1918.
The May Revolution was a direct reaction to Spain's Peninsular War. In 1808, King Ferdinand VII of Spain abdicated in favor of Napoleon, who granted the throne to his brother, Joseph Bonaparte. A Supreme Central Junta led resistance to Joseph's government and the French occupation of Spain, but eventually suffered a series of reversals that resulted in the Spanish loss of the northern half of the country. On February 1, 1810, French troops took Seville and gained control of most of Andalusia. The Supreme Junta retreated to Cadiz and dissolved itself, and the Council of Regency of Spain and the Indies replaced it. News of these events arrived in Buenos Aires on May 18, brought by British ships.
The islands were uninhabited when discovered by Europeans. France established a colony on the islands in 1764. In 1765, a British captain claimed the islands for Britain. In early 1770 a Spanish commander arrived from Argentina with five ships and 1400 soldiers forcing the British to leave Port Egmont. Britain and Spain almost went to war over the islands, but the British government decided that it should withdraw its presence from many overseas settlements in 1774. Spain, which had a garrison at Puerto Soledad on East Falklands, administered the garrison from Montevideo until 1811 when it was compelled to withdraw by pressures resulting from the Peninsular War. In 1833, the British returned to the Falkland Islands. Argentina invaded the islands on 2 April 1982. The British responded with an expeditionary force that forced the Argentines to surrender.
After Philip II made Madrid the capital city of the Spanish Empire in 1561, the city experienced rapid growth. As Spain (like many other European countries) continued to centralize royal authority, particularly under the Bourbon monarchs, Madrid took on greater importance as a center of administration for Spain. It was sometimes described as an "economic parasite", sucking in the resources of the empire without directly generating wealth.
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.
Hispanization did not spread to the mountainous center of northern Luzon, nor to the inland communities of Mindanao. The highlanders were more able to resist the Spanish invaders than the lowlanders.
Although the king enforced laws to end Spanish slavery in the Philippines, he did not include laws that may end the native Philippine slavery between the Filipinos. Although it was not completely abolished, it underwent considerable changes during the Spanish occupation. The "mangangayaw" raids, which were the raiding of "barangays" for obtaining slaves and territories, disappeared. Tyrannical enslavement also disappeared since the "datus" were forced to free their slaves and the exchange of slaves in the weddings was not allowed after most Filipinos were converted to Christians. By the middle of the 18th century, Philippine slavery disappeared in areas under the Spanish control. In areas that were not under the Spanish control like mountains in Mindanao and Cordillera, however, it was still present.
They also defeated the Chinese warlord Limahong. To counteract the Islamization of the Philippines, the Spanish then conducted the Castilian War which was aimed against the Sultanate of Brunei and war was also waged against the Sultanate of Ternate and Tidore (in response to Ternatean slaving and piracy against Spain's vassal states: Dapitan and Butuan). The Spanish considered their war with the Muslims in Southeast Asia an extension of the Reconquista, a centuries-long campaign to retake and rechristianize the Spanish homeland which was invaded by the Muslims of the Umayyad Caliphate. The Spanish expeditions into the Philippines were also part of a larger Ibero-Islamic world conflict that included a just war against the Ottoman Caliphate which had just recently invaded former Christian lands in the Eastern Mediterranean and had a center of operations at its nearby vassal state, the Sultanate of Aceh which was the first missionary center of expanding Islam in Southeast Asia and had grew at the expense of older Animist, Hindu or Buddhist states that had remained loyal to their religions in the face of an encroaching Islam. These states were sought as allies by Christian newcomers. However, the Muslim Sultanates in the Philippines thought differently, to them, preserving and propagating Islam was a merely an act of self-defense against a Christian invader. Both sides had noble justifications in their wars against each other. In time, Spanish fortifications were also set up in Taiwan and the Maluku islands. These were abandoned and the Spanish soldiers, along with the newly Christianized natives of the Moluccas, withdrew back to the Philippines in order to re-concentrate their military forces because of a threatened invasion by the Japan-born Ming-dynasty loyalist, Koxinga, ruler of the Kingdom of Tungning. However, the planned invasion was aborted. Meanwhile, settlers were sent to the Pacific islands of Palau and the Marianas.
Spanish rule eventually contributed significantly to bringing political unity to the fragmented states of the archipelago. From 1565 to 1821, the Philippines was governed as a territory of the Mexico-based Viceroyalty of New Spain and then was administered directly from Madrid after the Mexican War of Independence. The Manila galleons, the largest wooden ships ever built, were constructed in Bicol and Cavite. The Manila galleons were accompanied with a large naval escort as it traveled to and from Manila and Acapulco. The galleons sailed once or twice a year, between the 16th and 19th centuries. The Manila Galleons brought with them goods, settlers and military reinforcements destined for the Philippines, from Latin America. The reverse voyage also brought Asian commercial products and immigrants to the western side of the Americas.