would divide into several countries. The first military campaigns against the royalists were waged by Manuel Belgrano and Juan José Castelli. The Army of the North led by Castelli was headed first by Ortiz de Ocampo and defeated a counter-revolution organized by Liniers at Córdoba. Castelli took command to enforce the execution of the captured royalists, and then moved to the Upper Peru. He took control of it for a brief time, and was defeated by Goyeneche at the Battle of Huaqui. Belgrano led an ill-fated campaign to Paraguay, and created the Flag of Argentina when preparing the defenses of Rosario against a possible attack from the Banda Oriental (where Montevideo was under siege by Artigas). Belgrano led a new campaign to the Upper Peru, achieving military victories at Salta and Tucuman, but being defeated at Vilcapugio and Ayohuma. By this time José de San Martín arrived to Buenos Aires with other generals of the Peninsular War. They gave new strength to the Revolutionary war, which was compromised by the defeats of Belgrano and Castelli and the royalist resistance at the Banda Oriental. Alvear took Montevideo, and San Martín started a military campaign that would span across an important part of the Spanish territories in America. First, he created the Regiment of Mounted Grenadiers and defeated a Spanish raid at the Battle of San Lorenzo (the only battle that San Martín fought in Argentine territory). He created the Army of the Andes in Mendoza and, with help of Bernardo O'Higgins nd other Chileans he made the Crossing of the Andes and liberated Chile. With the Chilean navy at his disposal, he moved to Peru, liberating that country as well. San Martín met Simón Bolívar at Guayaquil, and retired from action. The Congress of Tucumán was called while San Martín was preparing the crossing of the Andes. It declared independence from Spain or any other foreign power. After independence After the Argentine independence from Spain, a history of military conscription emerged and that this tradition of mandatory military service began in 1896 with the First Conscription (Servicio Militar Obligatorio) where 20-year-old men were drafted by a decree of President José Evaristo Uriburu and lasted until 1994. This policy persisted owing to numerous conflicts that Argentina was involved in previously after its independence and the foreseen territorial conflicts with neighboring countries. For instance, 1825 saw the outbreak of the Argentina-Brazil War over