noun, feminine/kapitaˈnia/plural: capitanías
captainship; captaincy (the job or status of a captain); company (unit of soldiers commanded by a captain); anchorage fee (fee for anchoring in a port); battalion; regiment; military government
“Entonces, avisaron al oficial de guardia superior de la capitanía del puerto de Mariel.”
From capitán + -ía.