It was fought between the Union ("the North") and the Confederacy ("the South"), the latter formed by states that had seceded.