Flag captain
In the Royal Navy, a flag captain was the captain of an admiral's flagship. During the 18th and 19th centuries, this ship might also have a "captain of the fleet", who would be ranked between the admiral and the "flag captain" as the ship's "First Captain", with the "flag captain" as the ship's "Second Captain".