At this time the Colombian auxiliary army was cantoned in Peru, and the third division, stationed at Lima, consisting of veteran troops under Lara and Sands, became distrustful of Bolivar's designs on the freedom of the republic. Accordingly, in about six weeks after the adoption of Bolivar's new constitution, a counter-revolution in the government of Peru was effected by this body of dissatisfied veterans, and the Peruvians, availing themselves of the opportunity, abjured the Bolivian code, deposed the council appointed by the liberator, and proceeded to organize a provisional government for themselves.
Twenty-two volumes of official documents bearing on Bolivar's career were officially published at Caracas in 1826-1833.
When Bolivar's victory at Boyaca compelled its evacuation.
The next few years witnessed the expulsion of the royalists from the south of Chile, the equipment of a small fleet, placed under the command of Manuel Blanco Encalada and Lord Cochrane (earl of Dundonald), and the invasion of Peru by San Martin with the help of the fleet, ending in the proclamation of Peruvian independence in 1821; though the Spanish power was not finally broken until Bolivar's victory at Ayacucho in 1824.
He became, however, an early sacrifice to Jackson's spoils system, being recalled within less than a year, but not until he had involved himself in some awkward diplomatic complications with Bolivar's autocratic government.