If the blockade were raised Callao could not be captured, so San Martin was forced to temporise, and insisted only on the restitution of private property, to which Cochrane acceded.

When Callao surrendered, the Peruvian Government ordered Cochrane to give up the rest of the treasure to an official of the War Office. Cochrane regretted that his duty to Chile obliged him to prevent by any means in his power insubordination and rebellion in the Chilian fleet. San Martin then gave way, and Cochrane distributed one year’s pay to all his crews, but kept the rest of the money for the general use of the squadron. After this, many of the seamen deserted to spend their money on shore, which occasioned so much disorder, that San Martin ordered Cochrane to return to Chile and report to his own government.

Cochrane denied the right of the Protector of Peru to give any such order, but some days after weighed anchor and left the harbour.

San Martin then wrote to O’Higgins, proposing to declare Cochrane an outlaw, but O’Higgins was too clear-sighted to commit any such folly, and acknowledged that they themselves were much to blame for what had occurred. Besides which Cochrane’s conduct gave great satisfaction to the Chilian people, and he himself had sent a despatch to the Chilian Government, informing them that he was sailing to Guayaquil to careen the O’Higgins, and to look for the two Spanish frigates Prueba and Venganza.

Cochrane was incapable of treachery to the cause he had adopted, he was the same hero as before, with all his defects and all his great qualities. His intention on leaving Callao was to complete his great work, by driving the last vestiges of Spanish domination from the Pacific. He sent the Lautaro and the Galvarino back to Chile, and with the rest of his ships reached Guayaquil on the 18th October, where he spent six weeks in repairing them.

On the 3rd December he sailed again, looking into every bay and inlet along the coast as far as California for his prey. The two frigates had been employed on transport service, by various Spanish authorities on the Pacific coast, and on the 4th December had left Panama for Guayaquil, where they capitulated to Salazar and La Mar, who were there at the time as representatives of Peru.

The Prueba was sent off by them to Callao to give herself up to the Peruvian Government, but the Venganza remained at Guayaquil to make some necessary repairs, and she was still there when Cochrane returned on the 3rd March. The Admiral sent an armed boat to seize her and hoist the Chilian flag; the people manned the batteries and threatened to sink her; upon which he consented to leave her with them, until the question of ownership was decided by the governments of Chile and Peru.

Cochrane then sailed South, and touching at one of the northern ports of Peru, was refused either provisions or water by the authorities, who had special orders to that effect from the Protector. In great dudgeon he went on to Callao, where the appearance of his ships caused great alarm. The Prueba, now the Protector, under command of Captain Guise, was manned by troops from shore, and anchored under the batteries.

Cochrane sent an angry missive to the Minister of Marine, complaining of the treatment he had met with, and again demanded payment of the debts owing to him. The Minister went off to see him, invited him ashore and offered him the command of an expedition against the Philippine Islands. Cochrane was not to be appeased by words. A few days after that, the schooner Montezuma sailed close past him without saluting. He threatened to fire on her and compelled her to cast anchor, then boarding her he hauled down the Peruvian flag and hoisted the Chilian. It seemed as though the quarrel would culminate in actual fighting, till on the 10th May Cochrane sailed for Valparaiso, where he was welcomed in triumph, and his conduct received official approbation.

Soon after, Cochrane left for ever the shores of the Pacific, whose waves will murmur the record of his glorious deeds to the end of time.