to the one in Bogotá. New audiencias were established in: Caracas, 1786 Cusco (Peru), 1787 Buenos Aires, 1783. This meant that at the moment of Spanish American independence in the early 19th century, the overseas possessions of the Spanish Monarchy were overseen by twelve audiencias. After the loss of Santo Domingo to the French in 1795, the Audiencia of Santo Domingo was transferred to Camagüey, Cuba and renamed the Audiencia of Puerto Príncipe. In 1838 a second Cuban audiencia was established in Havana, and from 1831 to 1853 Puerto Rico had its own audiencia. Duties and composition Unlike their peninsular counterparts, the overseas audiencias had legislative and executive functions in addition to their judicial ones, and thus represented the king in his role as maker of laws and dispenser of justice, as evidenced by the fact that, as chanceries (chancillerías, modern Spanish: cancillerías), they alone had the royal seal. Their importance in handling the affairs of state is reflected in the fact that many of the modern countries of Spanish-speaking South America and Panama have boundaries that are roughly the same as those of the former audiencias. Audiencias shared many government duties with the viceroys and governors-captains generals of the regions they oversaw, and so they served as a check on the authority of the latter. An audiencia could issue local ordinances and served as a "privy council" to the viceroy or governor-captain general. In this function it often met weekly and was called by the term real acuerdo. An audiencia also oversaw the royal treasury, and when meeting in this capacity with the royal treasurer, it was referred to as a junta de hacienda (literally, "finance board"). The crown attorney (fiscal) also had the right to correspond directly with the crown, especially on treasury issues and acuerdo decisions. In turn, in the viceregal capitals of Spanish America, such as Mexico and Lima, the viceroy himself served as a presidente (president) of the audiencia. Likewise the governor-captain general served in this function in the various audiencias located in the capital of a captaincy general. In both cases the president had no vote in judicial matters, unless he was a trained lawyer, and only oversaw the administration of the court. The audiencias with a viceroy or captain general in charge were referred to as audiencias pretoriales ("praetorial audiencias"), or occasionally audiencias virreinales ("viceregal audiencias"), in the case of the former. In