A company commander is an officer who commands a company of marines. In both the Federation Marine Corps and the Starfleet Ground Forces the role was usually held by a captain. ((Star Trek: Remington, The Dominion War Sourcebook: The Fires of Armageddon)
Captain Richard Carlin commanded C Company (2nd Battalion 1st Marines) on board Starbase 397. (Star Trek: Remington)