The General Command of Maynas, a territory created under the Spanish Empire, had been preceded by the declarations of independence of the Republic of Colombia (in 1819) and the Protectorate of Peru (in 1821) in its immediate surroundings.
April 10, 1821, had been chosen as the date for Maynas' declaration of independence, although said plans were interrupted when troops of the Royal Army of Peru took over the city of Moyobamba, the capital of the General Command, capturing a number of so-called patriots, such as Pedro Pascasio Noriega, who was executed on the 11th.
[3] On August 17, Governor Manuel Fernández Álvarez asked the opinion of a war council, which decided that the forces would take refuge in Tabatinga, delivering artillery and ammunition to Luso-Brazilian commanders.
Battles took place in La Ventana, Tambo Visitador, Sarandajas, Habana [es] and the Pampa de Higos Urco.
[3] The battle at Higos Urco also gave San Martín the confidence to take over Lima, proclaiming the independence of Peru on July 28, 1821.