José Francisco de San Martín y Matorras (; 25 February 177817 August 1850), nicknamed "the Liberator of Argentina, Chile and Peru",John Lynch, San Martin: Argentine Soldier, American Hero (2009) was an Argentine general and the primary leader of the southern and central parts of South America's successful struggle for independence from the Spanish Empire who served as the Protector of Peru. Born in Yapeyú, Corrientes, in modern-day Argentina, he left the Viceroyalty of the Río de la Plata at the early age of seven to study in Málaga, Spain.

In 1808, after taking part in the Peninsular War against France, San Martín contacted South American supporters of independence from Spain in London. In 1812, he set sail for Buenos Aires and offered his services to the United Provinces of the Río de la Plata, present-day Argentina and other countries. After the Battle of San Lorenzo and time commanding the Army of the North during 1814, he organized a plan to defeat the Spanish forces that menaced the United Provinces from the north, using an alternative path to the Viceroyalty of Peru. This objective first involved the establishment of a new army, the Army of the Andes, in Cuyo Province, Argentina. From there, he led the Crossing of the Andes to Chile, and triumphed at the Battle of Chacabuco and the Battle of Maipú (1818), thus liberating Chile from royalist rule. Then he sailed to attack the Spanish stronghold of Lima, Peru.

On 12 July 1821, after seizing partial control of Lima, San Martín was appointed Protector of Peru, and Peruvian independence was officially declared on 28 July. On 26 July 1822, after a closed-door meeting with fellow Simón Bolívar at Guayaquil, Ecuador, Bolívar took over the task of fully liberating Peru. San Martín unexpectedly left the country and resigned the command of his army, excluding himself from politics and the military, and moved to France in 1824. The details of that meeting would be a subject of debate by later historians.

San Martín is regarded as a national hero of Argentina, Chile, and Peru, a great military commander, and one of the Liberators of Spanish South America. The Order of the Liberator General San Martín (), created in his honor, is the highest decoration conferred by the Argentine government.

Early life

José de San Martín's father, Juan de San Martín, son of Andrés de San Martín and Isidora Gómez, was born in the town of Cervatos de la Cueza, in the current Province of Palencia (former Kingdom of León, in Spain) and was lieutenant governor of the department. He served as a military man to the Spanish Crown and in 1774 he was appointed Governor of the Yapeyú Department, part of the Government of the Guaraní Missions, created to administer the thirty Guaraní Jesuit missions. After the order he was expelled from Hispanic America by Carlos III in 1767 based in Yapeyú reduction. His mother Gregoria Matorras del Ser was Spanish born 1738 in Paredes de Nava, Palencia, a few kilometres from where Juan de San Martin was born and the daughter of Domingo Matorras and María del Ser. In 1806 she eventually settled after the death of her daughter Elena and died in Orense, Galicia in 1813. He was born in Yapeyú, Corrientes, an Indian reduction of Guaraní people. The exact year of his birth is disputed, as there are no records of his baptism. Later documents formulated during his life, such as passports, military career records and wedding documentation, gave him varying ages. Most of these documents point to his year of birth as either 1777 or 1778. The family moved to Buenos Aires in 1781, when San Martín was three or four years old.

Juan requested to be transferred to Spain, leaving the Americas in 1783. The family settled in Madrid, but as Juan was unable to earn a promotion, they moved to Málaga. Once in the city, San Martín enrolled in Málaga's school of temporalities, beginning his studies in 1785. It is unlikely that he finished the six-year-long elementary education, before he enrolled in the Regiment of Murcia in 1789, when he reached the required age of 11. He began his military career as a cadet in the Murcian Infantry Unit.

Military career in Europe

San Martín took part in several Spanish campaigns in North Africa, fighting in Melilla and in Oran against the Moors in 1791, among others. His rank was raised to Sub-Lieutenant in 1793, at the age of 15. He began a naval career during the War of the Second Coalition, when Spain was allied with France against Great Britain, during the French Revolution. His ship Santa Dorotea was captured by the Royal Navy, who kept him as a prisoner of war for some time. Soon afterward, he continued to fight in southern Spain, mainly in Cádiz and Gibraltar with the rank of Second Captain of light infantry. He continued to fight Portugal on the side of Spain in the War of the Oranges in 1801. He was promoted to captain in 1804. During his stay in Cádiz he was influenced by the ideas of the Spanish Enlightenment.

At the outbreak of the Peninsular War in 1808, San Martín was named adjutant of Francisco Solano, 2nd Marquis de Socorro. Rosas, suspected of being an afrancesado, was killed by a popular uprising which overran the barracks and dragged his corpse in the streets. San Martín was appointed to the armies of Andalusia, and led a battalion of volunteers. In June 1808 his unit became incorporated into a guerrilla force led by Juan de la Cruz Mourgeón. He was nearly killed during the battle of Arjonilla, but was saved by Sergeant Juan de Dios. On 19 July 1808, Spanish and French forces engaged in the battle of Bailén, a Spanish victory that allowed the Army of Andalusia to attack and seize Madrid. For his actions during this battle, San Martín was awarded a gold medal, and his rank raised to lieutenant colonel. On 16 May 1811, he fought in the battle of Albuera under the command of general William Carr Beresford. By this time, the French armies held most of the Iberian Peninsula under their control, except for Cádiz.

San Martín resigned from the Spanish army, for controversial reasons, and moved to South America, where he joined the Spanish American wars of independence. Historians propose several explanations for this action: the common ones are that he missed his native land, that he was in the employ of the British and the congruence of the goals of both wars. The first explanation suggests that when the wars of independence began San Martín thought that his duty was to return to his country and serve in the military conflict. The second explanation suggests that Britain, which would benefit from the independence of the South American countries, sent San Martín to achieve it. The third suggests that both wars were caused by the conflicts between Enlightenment ideas and absolutism, so San Martín still waged the same war; the wars in the Americas only developed separatist goals after the Spanish Absolutist Restoration.

San Martín was initiated in the Lodge of Rational Knights in 1811. They met at the house of Carlos María de Alvear, other members were José Miguel Carrera, Aldao, Blanco Encalada and other criollos, American-born Spaniards. They agreed to return to their home lands and join the local revolutionary movements. San Martín asked for his retirement from the military, and moved to Britain. He stayed in the country for a short time, and met many other South Americans at a lodge held at the house of Venezuelan general Francisco de Miranda at 27 Grafton Street (now 58 Grafton Way), Bloomsbury, London (the house now has a blue plaque with Miranda's name). Then he sailed to Buenos Aires aboard the British ship George Canning, along with the South Americans Alvear, Francisco José de Vera and Matías Zapiola, and the Spaniards Francisco Chilavert and Eduardo Kailitz. They arrived on 9 March 1812, to serve under the First Triumvirate.

South America

Argentina

A few days after his arrival in Buenos Aires in the United Provinces (formally named the Argentine Republic in 1826), San Martín was interviewed by the First Triumvirate. They appointed him a lieutenant colonel of cavalry, and asked him to create a cavalry unit, as Buenos Aires did not have good cavalry. He began to organize the Regiment of Mounted Grenadiers with Alvear and Zapiola. As Buenos Aires lacked professional military leaders, San Martín was entrusted with the protection of the whole city, but kept focused in the task of building the military unit.

San Martín, Alvear and Zapiola established a local branch of the Lodge of Rational Knights, along with morenists, the former supporters of the late Mariano Moreno. This lodge sought to promote liberal ideas; its secrecy hides whether it was a real Masonic lodge, or a lodge with political goals. It had no ties to the Premier Grand Lodge of England. In September 1812, San Martín married María de los Remedios de Escalada, a 14-year-old girl from one of the local wealthy families.

The lodge organized the Revolution of 8 October 1812 when the terms of office of the triumvirs Manuel de Sarratea and Feliciano Chiclana ended. Juan Martín de Pueyrredón promoted antimorenist new members, Manuel Obligado and Pedro Medrano, by preventing the vote of three deputies and thus achieving a majority. As this caused a commotion, San Martín and Alvear intervened with their military force, and the Buenos Aires Cabildo disestablished the triumvirate. It was replaced by the Second Triumvirate of Juan José Paso, Nicolás Rodríguez Peña and Antonio Álvarez Jonte. The new triumvirate called the Assembly of the Year XIII and promoted San Martín to colonel.

San Lorenzo

Montevideo, on the other shore of the Río de la Plata, was still a royalist stronghold. Argentine general José Rondeau laid siege to it, but the Montevidean navy eluded it by pillaging nearby cities. San Martín was sent with the new Regiment to watch the activities in the Paraná River shore.

The Regiment followed the navy from a distance, avoiding detection. They hid in the San Carlos Convent, in San Lorenzo, Santa Fe. San Martín watched the enemy ships from the top of the convent during the night. The royalists disembarked at dawn, ready to pillage and the regiment charged into battle. San Martín employed a pincer movement to trap the royalists. He led one column and Justo Bermúdez the other.

San Martín's horse was killed during the battle, and his leg was trapped under the corpse of the animal after the fall. A royalist, probably Zabala himself, attempted to kill San Martín while he was trapped under his dead horse where he suffered a saber injury to his face, and a bullet wound to his arm. Juan Bautista Cabral and Juan Bautista Baigorria of San Martín's regiment intervened and saved his life; Cabral was mortally wounded, and died shortly afterwards.

The battle did not have a notable influence on the war and did not prevent further pillage. Montevideo was finally subdued by Admiral William Brown during the Second Banda Oriental campaign. Antonio Zabala, the leader of the Montevidean army, served under San Martín during the crossing of the Andes years later.

Army of the North

Once again in Buenos Aires, San Martín and his wife attended to the first official performance of the Argentine National Anthem, on 28 May 1813 at the Coliseo Theater. Oral tradition has it that the premiere took place on 14 May 1813 at the home of aristocrat Mariquita Sánchez de Thompson, with San Martín also attending, but there is no documentary evidence of that. The lyrics of the new anthem included several references to the secessionist will of the time.