Complex sentence: They remained in occasional use until they were replaced by wire obstacles just after the American Civil War, during which it was most often used by the Confederates.
Split into simpler sentences: They remained in occasional use until they were replaced by wire obstacles just after the American Civil War. During the Civil War, it was most often used by the Confederates.