Answer
Fighting piracy was Perry's primary mission in the Caribbean. As a naval officer, he was tasked with suppressing the rampant piracy that plagued the region, disrupting trade and threatening the safety of ships and their crews. Perry's efforts were instrumental in reducing the incidence of piracy, ensuring the security of maritime commerce, and safeguarding the interests of the United States in the Caribbean.