Complex sentence: He was a Union Army Captain in the Civil War in the 5th Pennsylvania Reserves and afterwards practiced law in Philadelphia, New York City, and Denver.
Split into simpler sentences: He was a Union Army Captain in the American Civil War, serving in the 5th Pennsylvania Reserves. After the war, he practiced law in Philadelphia, New York City, and Denver.