The truce ended in 1821 and in Bolívar's campaign to liberate New Granada, Bolívar had all available forces converge on Carabobo, a hilly plain near Valencia, to face de la Torre and Morales. The defeat of the Spanish right in the Battle of Carabobo, which is credited to the British Legions whose commander Thomas Farriar fell, decided the battle. The general Morales with the remnants of the royalists tried to resist in Puerto Cabello. After Carabobo, a congress met in Cúcuta, Santander's birthplace, and approved a federalist constitution for Gran Colombia. Subsequent battles included a key naval victory for the independence forces on 24 July 1823 at the Battle of Lake Maracaibo and in November 1823 José Antonio Páez occupied Puerto Cabello, the last Royalist stronghold in Venezuela.