The main setting in Beat to Quarters is the British warship Lydia. Other location are the many ports visited throughout the voyage. These locations include the Pacific coast of Central Mexico (ports), the Gulf of Fonseca, Panama City, La Libertad, the volcanic coast of Nicaragua, and the island of Coiba.
Beat to Quarters