The Union Army fought and eventually defeated the Confederate States Army during the war .
The Union Army fought and defeated the Confederate States Army during the war , from 1861 to 1865 .