The Spanish forts in the Caribbean were built to protect the trade routes connecting South America and Spain through the isthus of Panama.