The Real Audiencia and Chancery of Panama in Tierra Firme (Spanish: Audiencia y Cancillería Real de Panamá en Tierrafirme) was a governing body and superior court in the New World empire of Spain. The Audiencia of Panama was the third American audiencia after the ones of Santo Domingo and Mexico. It existed three times under various guises since it first creation in 1538 until its ultimate abolition in 1751.
The first Audiencia of Panama was created by Charles V by a royal decree of February 26, 1538. Its initial jurisdiction included the provinces of Tierra Firme (Castilla de Oro and Veragua), all land from the Strait of Magellan to the Gulf of Fonseca, Nicaragua, until 1543 when most of the South American territories were assigned to a new audiencia in Lima. A decree of May 23, 1539, removed the entire province of Nicaragua from the Audiencia of Santo Domingo and placed under the Panama one.
The Audiencia began functioning in Panama City in 1539 with the arrival of the Oidores Francisco Pérez de Robles, Lorenzo Pérez de la Serna, Pedro de Villalobos, and Attorney Alonso de Montenegro. Pérez de Robles served as the first audiencia president and replaced Governor Pedro Vásquez de Acuña. Pérez de Robles carried out his duties until 1543, when the Audiencia was decreed abolished and replaced with an Audiencia of the Confines in Guatemala. During this period the Audiencia supervised various voyages of exploration. Ultimately, the administration of Pérez de Robles proved to be corrupt, resulting in several charges that led to a trial and destitution from office. The investigation and trial (juicio de residencia) were carried out by Pedro Ramírez de Quiñones, who had been appointed corregidor of Panama and Nombre de Dios.