José de San Martín proclaims Peru's independence in Lima after his army enters the city. Spanish royalist forces continue to hold other areas, so the declaration does not immediately end colonial rule; further campaigns follow before the republic can consolidate its authority.