Between 1821 and 1825 the Trujillo region was the only stable and productive land within the nascent republic. In 1823 Trujillo took on the role of the first capital city of the Republic of Peru. On July 19, 1823 the Peruvian Congress located here repeated its invitation to Simón Bolívar, a leader in Bolivia, to join the war of independence. In 1824 the city received the liberation army of Bolívar, and was again designated as the seat of government. It is the only city to have twice been designated as the capital.