Built and settled in 1671 after the destruction of Panama Viejo by the privateer Henry Morgan, the historic district of Panama City (known as Casco Viejo, Casco Antiguo or San Felipe) was conceived as a walled city to protect its settlers against future pirate attacks. It was designated a World Heritage Site by UNESCO in 2003.