In 1822, Joaquín Mosquera travelled on behalf of Colombia to request the restitution of the province. On July 25, 1824, the Congress of Gran Colombia issued a law of territorial division intending to include the Canton of Quijos in the Pichincha Province of the Department of Quito, according to the limits it had at the time of creation as the Viceroyalty of New Granada. It also intended to incorporate the Provinces of Jaén, Matamoros and Maynas into the Department of Azuay. The Peruvian refusal to give up the territories escalated tensions between the two countries, culminating in the Gran Colombia–Peru War.