During the Spanish Colonial era, most of the Jesuit missions were under the jurisdiction of the Royal Audiencia of Quito. Created in 1563, it was a part of the Viceroyalty of Peru, and was transferred briefly to the Viceroyalty of New Granada on 27 May 1717 known as the Cedula Real of 1717 (Royal Decree of 1717). Six and a half years later, on 5 November 1723, Philip V of Spain dissolved the Viceroyalty of New Granada and reincorporated the Audiencia of Quito into the Viceroyalty of Peru. Sixteen years later Philip V of Spain decided to re-create the Viceroyalty of New Granada and to re incorporate the Audiencia of Quito through the "Cedula Real" (Royal Decree) dated 20 August 1739. Charles III of Spain suppressed the Society of Jesus, believing them too powerful, and expelled them from South America by order dated 20 August 1767. Given the distance from Quito and the lack of roads connecting to that city, a political vacuum was developed in the area. The undefended Jesuit missions were attacked by the Brazilian Bandeirantes. In response the King of Spain on recommendation of Francisco Raquena created the Government and Commandancy General of Maynas in 1802 to halt the invasion into the Spanish Amazon of land-hungry mestizo Portuguese Bandeirantes. In general, this amounted to the religious administration and military command of all tributaries of the Amazon river in the Amazon Basin that belonged to the Royal Audiencia of Quito in the Viceroyalty of New Granada being transferred again to the Viceroyalty of Peru. The Portuguese advance was halted at Tabatinga.