After that the expedition occupied the cities of Valencia and La Victoria in early August. Losing on two fronts, the royalist government surrendered on August 4. Bolívar's forces had a triumphal entrance into the city of Caracas on August 6, bringing an end to the campaign and reestablishing the Venezuelan republic.