The Province of Barinas declared for the King, and Monteverde, being now secure in his rear, twice attacked Miranda in his entrenchments, but was each time repulsed with heavy loss. Having received reinforcements from Coro, he made a third attack, and was again repulsed, but, undismayed, he made a flank movement and turned the position of the Patriots, whereupon Miranda, though with a force greatly superior in number to his adversary, set fire to his stores, and retired precipitately, on the night of the 17th June, to Victoria. Monteverde, at the head of a small detachment, again attacked him in his new position, and caused great confusion in the encampment, but was eventually beaten off.

The Royalist leader had now more than 3,000 men under his orders, and, being joined by Antoñanzas, made a general attack on the entrenchments thrown up by Miranda at Victoria on the 29th June, but was repulsed with heavy loss after expending all his ammunition.

Miranda made no attempt to pursue him, and in a council of war it was decided to retreat to Valencia. A Spaniard prevailed upon Monteverde to disregard the decision of the council, and to remain where he was for three days. These three days were the last of this revolution.

On the 24th June a general insurrection of the slaves broke out in the valleys to the south-east of Caracas. Miranda had decreed liberty to all slaves who would join the Patriot armies. Their Spanish owners preferred to arm them themselves to fight against the Patriots. The negroes committed all manner of excesses, attacked several towns, maltreated the white inhabitants, and came so near to Caracas that Miranda was compelled to detach troops against them.

Bolívar had been placed in command of the city of Puerto Cabello. During a temporary absence of his, the Spanish prisoners, who were numerous, gained over the garrison of the citadel, and took possession of it. Bolívar attempted to retake it with the troops quartered in the city; his advance posts went over to the enemy. On the 4th July Monteverde approached; Bolívar sent out 200 men against him. They were beaten, and only seven men with one officer returned. On this the rest of his troops disbanded, and, with seven officers, he fled by sea to La Guayra. When Miranda heard of this he exclaimed, “Venezuela is stricken to the heart.”

The Royalists had now the whole of the west and the plains; they dominated both banks of the Orinoco and the sea coast; the Patriots held barely a third of the territory of Venezuela. The army still numbered 5,000 men, mostly recruits, but the general had no confidence in them, nor had his subordinates any longer faith in him. Every one accused Miranda of having caused the miseries they suffered: some called him a traitor. In despair he summoned a council, and by their advice opened negotiations with the enemy.

In order to be in a better position to treat, Miranda made an attack upon the enemy’s lines, and routed several detached parties of the Royalist troops, after which he proposed a suspension of hostilities. The proposition was accepted by Monteverde, on condition that the Royalist troops should be permitted to advance on Caracas.

Miranda then made further proposals, and authorised his commissioners to sign a capitulation, which should guarantee the freedom and properties of the insurgents. Some of his officers protested against this, and advised him to risk everything on the chance of a battle, but in reality all wished for peace, and he knew it. A capitulation, though a defeat, would do more for Venezuela than would a passing victory; public opinion had veered round and was master of the situation. It was necessary that Venezuela should suffer the yoke of the victorious reaction, in order that she might know what it meant, and might gather up her forces for the decisive struggle.

The capitulation was agreed to by Monteverde, and by the commissioners appointed by Miranda, on the basis of the complete submission of the Patriots and a general amnesty. Miranda, after some hesitation, acceded to these terms, and withdrew to Caracas. The troops either joined the Royalist forces or dispersed.

On the 30th July Monteverde entered Caracas in triumph, while Miranda, with Bolívar and several of his principal officers, trusting not at all to the capitulation, left for La Guayra, intending to fly by sea. The captain of an English ship had offered a passage to Miranda, and urged him to embark at once. Bolívar and the others prevented him from going on board, saying that he required rest. They dined together, and after Miranda had retired, twelve officers formed themselves into a sort of secret tribunal, and decided that he, as the author of the capitulation, ought to share the fate of the rest. Bolívar accused him of receiving bribes from the Spaniards, and voted for his death as a traitor to the cause of independence, but it was resolved to detain him. Before dawn Bolívar went to his room, removed his sword and pistols, and then awoke him. He was made prisoner by his own friends and shut up in the castle of San Carlos.