The title for someone who holds the captain job on a ship or other vessel.
An army officer title in most countries
In the merchant navy, the officer who is second in command to the captain, and whose primary duties include managing the maintenance and upkeep of the vessel.