The alarm-gun roared from the castle of Real Felipe; a gunboat opened fire on the frigate, by which Captain Coig was severely wounded, and one Chilian and two English seamen were killed. The other ships beat to quarters. Guise, who was now in command, saw the imprudence of attempting any further captures. He ordered the cables to be cut, the sails were set, and the Esmeralda sailed away in the hands of her captors. The ships and the shore batteries opened a heavy fire upon her. Some of the shot passing over the Hyperion and Macedonia, these vessels hung out distinguishing lights. This contingency Cochrane had foreseen. Immediately similar lights were displayed on the Esmeralda, and at half-past two she anchored off the island of San Lorenzo. The boats followed her with two gunboats in tow which they captured as she sailed off.

The loss of the expedition was eleven killed and thirty wounded. The Spaniards lost about 160 men killed or drowned, and 200 prisoners.

The Royalists on shore accused the neutral ships of complicity in this shameful defeat, more especially the men of the Macedonia, whose sympathy for the cause of South American Independence was well known. Next day, when one of her boats was sent ashore as usual for provisions, the crew was barbarously massacred by the infuriated populace.

Cochrane sent a flag of truce on shore proposing an exchange of prisoners, to which the Viceroy acceded. About 200 Chilians and Argentines, who had languished for years in the casemates of Callao, thus recovered their liberty.

The Esmeralda was renamed the Valdivia, in honour of Cochrane’s victory of the year before.

The moral effects of the capture of the Esmeralda were very great, but from a political point of view the revolution in Guayaquil was of yet more importance. Still San Martin turned a deaf ear to the counsels of Cochrane, who advised an immediate advance upon Lima, and on the 9th the convoy weighed anchor at Ancon, and sailed to the port of Huacho, which lies ninety miles to the north of Callao. On the 10th the disembarkation commenced, and D’Albe, the French engineer, threw up three redoubts to secure the place. He also improvised a mole to facilitate communication with the squadron.

The army marched inland, and on the 17th encamped in the beautiful valley of Huara, which is well watered, and abounds in trees, and was reputed healthy; but fevers are endemical along the coast in the summer, and dysentery in the autumn.

This valley is seven miles broad by fifty-two miles in length, and is intersected by a river of the same name which flows from the Cordillera to the sea. This river is fordable at several points, but offers many strong positions for defence against superior forces, of which San Martin took advantage, and established himself solidly on its bank, ready to act either on the defensive or on the offensive, as occasion might require. In his front stretched a sandy desert, while one of his flanks rested on Huacho, and the other on the Sierra. In this position he held Lima in check, cut off all communication between the northern provinces and the capital, could either advance or retreat at his pleasure, and was ready to effect a junction with Arenales when he should make his appearance.

Pezuela occupied the entrenched camp at Asnapuquio with nearly 7,000 men. He had sent off a small division against Arenales, and now threw out a vanguard of about 2,000 men to keep watch over the movements of San Martin. With this vanguard was the battalion of Numancia, the men of which were for the most part natives of Venezuela, and the officers were all Americans. The emissaries of San Martin had been actively at work with this battalion, and both officers and men now only waited for an opportunity to join the army of the Patriots. San Martin determined to give them this opportunity.

The cavalry being now well mounted, he detached Alvarado with 700 horse against the enemy’s vanguard. Alvarado marched away along the coast on the 24th November, sending Lieutenant Pringles in advance with eighteen grenadiers, as escort to a messenger who carried a missive to inform the disaffected regiment of the approach of the Patriot cavalry, and was charged to concert measures with them for their evasion. Pringles had strict orders not to fight on any account, but, after marching all night, he found himself at daybreak on the 27th close to the entire vanguard. In front was an advance party consisting of a squadron of dragoons led by Valdés. Upon them he charged impetuously with his eighteen men, but was beaten back. Finding his retreat cut off by another squadron, he attempted to cut his way through it, but lost three men killed and eleven wounded. Seeing escape was impossible, he then plunged into the sea with such of his men as could follow him, but, when Valdés galloped forward promising quarter, he surrendered.