 Charcas was one of the first regions in Spanish America to establish juntas in the independence period, which deposed the Audiencia judges.These juntas, set up in 1809, were quashed by forces from Peru and Río de la Plata the following year, but the Audiencia was not reestablished until 1816, and then under the auspices of the viceroy of Peru.Areas of Charcas under patriot control sent deputies to the Congress of Tucumán of 9 July 1816 which declared the independence of the provinces of the Río de la Plata.