The fifteen prisoners were paraded in triumph through the streets of Lima, where the account of this skirmish excited great enthusiasm. They were afterwards exchanged, and Pringles was tried by court-martial. He was censured for disobedience to orders, but both he and his companions received a badge of honour bearing the words, “Glory to the vanquished in Chancay.”

The skirmish with Pringles disclosed to Valdés the proximity of the Patriot cavalry, on which he retired from the coast into the valley of Chancay, placing the Numancia battalion on guard in the pass. Alvarado found his way into the valley by another pass; but his men and horses were so fatigued by the rapid march that he was forced to withdraw to a neighbouring farm in search of rest and forage. On the 1st December he again came up with the enemy, who retreated through a rugged defile, the Numancia battalion being left seven miles to the rear of the main body. On the 3rd this battalion took advantage of its position to join the Patriot column unmolested, a welcome contingent of 650 bayonets.

San Martin declared that “the battalion belongs to the army of Columbia, but shall remain incorporated with the army of Peru till the close of the war.” He showed his confidence in his new troops by confiding the flag of the Liberating army to their care.

These events encouraged the spirit of insurrection throughout Peru, which extended even into the ranks of the army. Hardly a day passed without some desertions being reported. On the 8th December thirty-eight officers and a cadet fled from Lima, and the leaders began to lose confidence in each other. Some of the principal citizens of Lima presented an address to the Viceroy, urging upon him the necessity of an honourable capitulation with San Martin. He was generally blamed for the untoward progress of the war, but was, in reality, powerless, his authority being undermined by a conspiracy which existed in the army to supplant him by La Serna.

On the 29th November San Martin drove the Royalists out of the populous department of Huaylas, which lay in his rear. The people, to the number of 70,000, swore the independence of Peru, immediately after which the whole of the Northern Provinces pronounced spontaneously in favour of the Revolution.

These were the producing provinces of Peru, and the chief source of the wealth of the Viceroyalty. They were almost entirely included in the Intendency of Trujillo, and had a mixed population of some 300,000 souls.

A Peruvian general, known as the Marquis of Torre-Tagle, was at that time Governor of Trujillo, and had been in secret correspondence with San Martin since he landed at Pisco. On the 24th December Torre-Tagle convened an open Cabildo at Trujillo, when, after showing the hopelessness of resistance to the superior force of San Martin, he advised submission. The Royalists, headed by the Bishop, stoutly opposed the proposition. He answered their arguments by shutting them up in prison, and on the 29th raised the banner invented at Pisco, and, with the mass of the people, swore to maintain the independence of Peru. In memory of this event, Trujillo bears to this day the name of “Departamento de la Libertad.”

Torre-Tagle then called upon the city of Piura to join the movement. This city was garrisoned by a Royalist battalion, and the people were unarmed; but the attitude of the Patriot leaders was so determined that the soldiery disbanded. In this way the whole of the North of Peru, from Chancay to Guayaquil, fell into the hands of the Patriots, and San Martin secured a safe base of operations, from which he could draw supplies and horses, and which gave him at once a reinforcement of 430 infantry and 200 cavalry.

On the 5th January, 1821, San Martin advanced with his whole army to Retes, seeking a junction with Arenales. La Serna, who was now in command of the Royalist army, with Canterac as chief of the staff, immediately prepared to attack him in a most disadvantageous position, but lost so many days in these preparations in consequence of the inefficient state of the army, that the friends of San Martin in Lima had time to advise him of his danger. Meantime he was joined by Arenales, and at once retired to his former position in the valley of Huara. The opportunity thus lost greatly increased the unpopularity of the Viceroy with the army. The effects of the blockade of Callao by Cochrane began now to be severely felt in Lima, and were greatly aggravated by the operations of bands of guerillas which San Martin had organized among the country-people. An Argentine from Salta named Villar, who had been a prisoner in the casemates of Callao, was the commander of these guerillas. They infested all the roads leading to the capital, and frequently destroyed small detached parties of troops or outposts of the Royalist army.

From Huara San Martin decreed a “Provisional Regulation,” by which the territory occupied by the Patriots was divided into four departments, each under a President, who had under him governors of districts, while a Court of Appeal was established at Trujillo. This was the first attempt at Constitutional administration in Peru, and prepared the way for a National Government.