In the Royal Navy, It is junior to commander and senior to the naval rank of lieutenant. Royal Navy ranks are matched up with Royal Air Force ranks. In this case the equivalent rank would be a squadron leader.