In Starfleet, a Commander ranks immediately below a Captain. A commander is typically the first officer of a starship, although they may command ships themselves in crisis situations.