 During the American Civil War, the rank of captain was used in both the Union Army and Confederate States Army.The rank was typically held by either junior staff officers or company commanders.In the case of the latter, company officers were normally elected by the men of their unit, unless the officer in question held rank in the Regular Army.