Captain

Captain is the most senior line officer rank. Captains most often command starships and medium to large starbases. Captains may also command planetary outposts or serve as division heads for Starfleet bases on major worlds or as adjutants to senior flag officers.