paragraph_text: Napoleon Bonaparte's invasion of Iberia, forcing the abdication of Charles IV and replacing him with Bonaparte's brother Joseph, produced unforeseen changes in Spain and its overseas empire. The outbreak of the Spanish American wars of independence was a result of Napoleon's destabilizing actions in Spain and led to the fragmentation of the former viceroyalties into independent nation - states. Royal government disappeared and local strongmen emerged in the Spanish American republics in the wake of these wars.

paragraph_text: Immigration to the United States of Spanish-speaking Cubans began because of Cuba's political instability upon achieving independence. The deposition of Fulgencio Batista's dictatorship and the ascension of Fidel Castro's government in 1959 increased Cuban immigration to the United States, hence there are some one million Cubans in the United States, most settled in southern and central Florida, while other Cubans live in the Northeastern United States; most are fluent in Spanish. In the city of Miami today Spanish is the first language mostly due to Cuban immigration.

paragraph_text: On August 10, 1815, the Royal Decree of Grace was issued, allowing foreigners to enter Puerto Rico (including French refugees from Hispaniola), and opening the port to trade with nations other than Spain. This was the beginning of agriculture-based economic growth, with sugar, tobacco, and coffee being the main products. The Decree also gave free land to anyone who swore their loyalty to the Spanish Crown and their allegiance to the Roman Catholic Church. Thousands of families from all regions of Spain (particularly Asturias, Catalonia, Majorca and Galicia), Germany, Corsica, Ireland, France, Portugal, the Canary Islands and other locations, escaping from harsh economic times in Europe and lured by the offer of free land, soon immigrated to Puerto Rico. However, these small gains in autonomy and rights were short lived. After the fall of Napoleon, absolute power returned to Spain, which revoked the Cádiz Constitution and reinstated Puerto Rico to its former condition as a colony, subject to the unrestricted power of the Spanish monarch.

paragraph_text: Both before and after the 1708 passage of the Foreign Protestants Naturalization Act, an estimated 50,000 Protestant Walloons and Huguenots fled to England, with many moving on to Ireland and elsewhere. In relative terms, this was one of the largest waves of immigration ever of a single ethnic community to Britain. Andrew Lortie (born André Lortie), a leading Huguenot theologian and writer who led the exiled community in London, became known for articulating their criticism of the Pope and the doctrine of transubstantiation during Mass.

paragraph_text: In 1821, Mexico gained its independence from Spain, and Alta California became one of the three interior provinces in the First Mexican Empire north of the Rio Grande, along with Texas and New Mexico. The Mexican government was unstable, leading to the annexation of California by the United States in 1846. During Mexican rule, California was sparsely populated, with only a few thousand Mexican residents, compared to tens of thousands of Native Americans, and a handful of Yankee entrepreneurs. At the time of the annexation, ``foreigners already outnumbered Californians of Spanish ancestry 9,000 to 7,500 ''. The advent of the California Gold Rush in 1848 led to a massive influx of settlers - including thousands of Mexican miners, but also tens of thousands of Americans from the East. Other substantial immigrant groups included Chileans, and Chinese people.

paragraph_text: Disha (English: "Direction") was a 1990 Hindi film directed by Sai Paranjpye, based on the plight of immigrant workers in urban India, starring Shabana Azmi, Nana Patekar and Om Puri in lead roles.

paragraph_text: The Mexican War of Independence (Spanish: Guerra de Independencia de México) was an armed conflict, and the culmination of a political and social process which ended the rule of Spain in 1821 in the territory of New Spain. The war had its antecedent in Napoleon's French invasion of Spain in 1808; it extended from the Grito de Dolores by Father Miguel Hidalgo y Costilla on September 16, 1810, to the entrance of the Army of the Three Guarantees led by Agustín de Iturbide to Mexico City on September 27, 1821. September 16 is celebrated as Mexican Independence Day.

paragraph_text: The Statue of Liberty is a figure of a robed woman representing Libertas, a Roman goddess. She holds a torch above her head with her right hand, and in her left hand carries a tabula ansata inscribed in Roman numerals with ``JULY IV MDCCLXXVI ''(July 4, 1776), the date of the U.S. Declaration of Independence. A broken chain lies at her feet. The statue became an icon of freedom and of the United States, and was a welcoming sight to immigrants arriving from abroad.

paragraph_text: The Latin American wars of independence were the revolutions that took place during the late 18th and early 19th centuries and resulted in the creation of a number of independent countries in Latin America. These revolutions followed the American and French Revolutions, which had profound effects on the British, Spanish, Portuguese, and French colonies in the Americas. Haiti, a French slave colony, was the first to follow the United States; the Haitian Revolution lasted from 1791 to 1804, when they won their independence. From this emerged Napoleon Bonaparte as French ruler, whose armies set out to conquer Europe, including Spain and Portugal in 1808. The Peninsular War with France, which resulted from the Napoleonic occupation of Spain, caused Spanish Creoles in Spanish America to question their allegiance to Spain, stoking independence movements that culminated in the wars of independence, which lasted almost two decades. At the same time, the Portuguese monarchy relocated to Brazil during Portugal's French occupation. After the royal court returned to Lisbon, the prince regent, Pedro, remained in Brazil and in 1822 successfully declared himself emperor of a newly independent Brazil.

paragraph_text: In 1898, during the Spanish -- American War, Puerto Rico was invaded and subsequently became a possession of the United States. The first years of the 20th century were marked by the struggle to obtain greater democratic rights from the United States. The Foraker Act of 1900, which established a civil government, and the Jones Act of 1917, which made Puerto Ricans U.S. citizens, paved the way for the drafting of Puerto Rico's Constitution and its approval by Congress and Puerto Rican voters in 1952. However, the political status of Puerto Rico, a Commonwealth controlled by the United States, remains an anomaly.

paragraph_text: In 1997 the Pier 21 facility was designated a National Historic Site of Canada on the recommendation of the Historic Sites and Monuments Board of Canada because of the facility's major role in 20th century immigration in Canada and because it is the last surviving seaport immigration facility in Canada. The Pier 21 Society opened an interpretive centre in part of the former immigration facility in 1999. The society became the Canadian Museum of Immigration at Pier 21 in 2010, and occupied an expanded portion of the former immigration facility. The Nova Scotia College of Art and Design's seaport campus took over Pier 21's former medical, detention and accommodation wing in 2011. The Garrison brewing company leased a large portion of the immigration annex building in May 2006. A variety of retail shops as well as artists' and architects' studios and cultural organizations occupy the remainder of the immigration annex.

paragraph_text: The history of immigration to the United States details the movement of people to the United States starting with the first European settlements from around 1600. Beginning around this time, British and other Europeans settled primarily on the east coast. Later Africans were imported as slaves. The United States experienced successive waves of immigration, particularly from Europe. Immigrants sometimes paid the cost of transoceanic transportation by becoming indentured servants after their arrival in the New World. Later, immigration rules became more restrictive; the ending of numerical restrictions occurred in 1965. Recently, cheap air travel has increased immigration from Asia and Latin America.

paragraph_text: The Ten Years' War () (1868–1878), also known as the Great War ("Guerra Grande") and the War of '68, was part of Cuba's fight for independence from Spain. The uprising was led by Cuban-born planters and other wealthy natives. On October 10, 1868 sugar mill owner Carlos Manuel de Céspedes and his followers proclaimed independence, beginning the conflict. This was the first of three liberation wars that Cuba fought against Spain, the other two being the Little War (1879–1880) and the Cuban War of Independence (1895–1898). The final three months of the last conflict escalated with United States involvement, leading to the Spanish–American War.

paragraph_text: Villamayor de Gállego is a municipality located in the province of Zaragoza, Aragon, Spain. According to the 2010 census (INE), the municipality has a population of 2,888 inhabitants. Villamayor de Gállego became independent from Zaragoza in 2006.

paragraph_text: The history of El Salvador begins with several Mesoamerican nations, especially the Cuzcatlecs, as well as the Lenca and Maya. In the early 16th century, the Spanish Empire conquered the territory, incorporating it into the Viceroyalty of New Spain ruled from Mexico City. In 1821, the country achieved independence from Spain as part of the First Mexican Empire, only to further secede as part of the Federal Republic of Central America in 1823. Upon the republic's dissolution in 1841, El Salvador became sovereign until forming a short - lived union with Honduras and Nicaragua called the Greater Republic of Central America, which lasted from 1895 to 1898.

paragraph_text: In the 1950s and the 1960s, Paris became one front of the Algerian War for independence; in August 1961, the pro-independence FLN targeted and killed 11 Paris policemen, leading to the imposition of a curfew on Muslims of Algeria (who, at that time, were French citizens). On 17 October 1961, an unauthorised but peaceful protest demonstration of Algerians against the curfew led to violent confrontations between the police and demonstrators, in which at least 40 people were killed, including some thrown into the Seine. The anti-independence Organisation de l'armée secrète (OAS), for their part, carried out a series of bombings in Paris throughout 1961 and 1962.

paragraph_text: (Ukrainian: Си́мон Васи́льович Петлю́ра; May 10, 1879 – May 25, 1926) was a Ukrainian politician and journalist. He became the Supreme Commander of the Ukrainian Army and the President of the Ukrainian People's Republic during Ukraine's short-lived sovereignty in 1918–1921, leading Ukraine's struggle for independence following the fall of the Russian Empire in 1917.

paragraph_text: The creation of modern-day Eritrea is a result of the incorporation of independent, distinct kingdoms and sultanates (for example, Medri Bahri and the Sultanate of Aussa) eventually resulting in the formation of Italian Eritrea. In 1947 Eritrea became part of a federation with Ethiopia, the Federation of Ethiopia and Eritrea. Subsequent annexation into Ethiopia led to the Eritrean War of Independence, ending with Eritrean independence following a referendum in April 1993. Hostilities between Eritrea and Ethiopia persisted, leading to the Eritrean–Ethiopian War of 1998–2000 and further skirmishes with both Djibouti and Ethiopia.

paragraph_text: The Statue of Liberty is a figure of a robed woman representing Libertas, a Roman liberty goddess. She holds a torch above her head with her right hand, and in her left hand carries a tabula ansata inscribed in Roman numerals with ``JULY IV MDCCLXXVI ''(July 4, 1776), the date of the U.S. Declaration of Independence. A broken chain lies at her feet as she walks forward. The statue became an icon of freedom and of the United States, and was a welcoming sight to immigrants arriving from abroad.

paragraph_text: August Willich (November 19, 1810 – January 22, 1878), born Johann August Ernst von Willich, was a military officer in the Prussian Army and a leading early proponent of communism in Germany. In 1847 he discarded his title of nobility. He later immigrated to the United States and became a general in the Union Army during the American Civil War.

Question: When did the country immigration led to become independent from Spain?
Answer: 1898