In Britain's Royal Navy, it's the rank just below captain
In 
Britain the rank came to be bestowed only upon a few senior army officers, ... is a 
term applied to any officer below the rank of captain, especially a second 
lieutenant.