The city of La Paz, in the region of Upper Peru (now Bolivia, then part of the Viceroyalty of the Río de la Plata) experienced a revolution in 1809 that deposed Spanish authorities and declared independence. It is considered one of the early steps of the Spanish American wars of independence, and an antecedent of the independence of Bolivia. However, the revolution was defeated shortly afterwards, and the city returned to Spanish rule.