Panama City is a city with a rich and dramatic history that has become a key link between two oceans and two worlds. Its history is generally divided into two main periods: before and after the destruction of the original settlement.
The first city, known today as Panama Viejo (Old Panama), was founded on 15 August 1519 by the Spanish conquistador Pedro Arias Dávila. It was the first permanent European settlement on the Pacific coast of the American continent. In 1671, the city was looted and burned following an attack by the English pirate Henry Morgan. Two years later, in 1673, the city was officially relocated to a new, more defensible site a few kilometres away—on a rocky peninsula where the historic district of Casco Viejo is now located.
Panama City owes its rapid growth and importance primarily to its unique geographical position, which made it a strategic centre of the Spanish Empire. The main route for transporting gold, silver, and other treasures from Peru and other colonies to Spain passed through the Isthmus of Panama, transforming the city into one of the most important and wealthiest trading hubs of that time. Furthermore, Panama City served as an administrative centre and the seat of the Royal Audiencia, highlighting its high status within the colonial system. The city was also a base for further exploration and conquest of South American lands, particularly the Inca Empire in Peru.
The economy of early Panama City was entirely focused on its role as a transit and administrative hub. The city flourished through trade, warehousing, and servicing the massive flow of people and cargo. Culturally, it was a "melting pot" from the very beginning, where Spanish colonists, indigenous peoples, and enslaved people brought from Africa mingled. This interaction laid the foundation for the multifaceted cultural heritage that defines the appearance of the Panamanian capital today.