Panamá, along with Venezuela, Columbia, and Equador, were controlled by Spain. They fought in a war until 1822 when they declared independence. It was a part of Gran Columbia for a while until it became Panamá in 1830 when Gran Columbia broke up.
Panamá's currency is called Panamanian Balboa. Panamá is a capitalist country.