Complex sentence: He served as a district court judge from 1857 until 1863 when he resigned to join the First Texas Cavalry Regiment of the Confederate States Army as major.
Split into simpler sentences: He served as a district court judge from 1857 until 1863. When his term as judge came to an end, Terrell joined the First Texas Cavalry Regiment of the Confederate States Army as major.