The title for someone who holds the captain job on a ship or other vessel.
An army officer title in most countries
An officer on a merchant ship next in rank to the captain and responsible to the captain for the safety and security of the ship.