More often than not, juntas sought to maintain a province's independence from the capital of the former viceroyalty or captaincy general as much as from the Peninsula itself. Armed conflicts broke out between the provinces over the question of whether some provinces were to be subordinate to others as they had been under the crown. This phenomenon was particularly evident in New Granada and Río de la Plata. This rivalry also leads some regions to adopt the opposite political cause to that chosen by their rivals. Peru seems to have remained strongly royalist in large part because of its rivalry with Río de la Plata, to which it had lost control of Upper Peru when the later was elevated to a viceroyalty in 1776. The creation of juntas in Río de la Plata allowed Peru to regain formal control of Upper Peru for the duration of the wars.