Complex sentence: The corps went to the Carolinas afterwards, fighting at the Battle of Bentonville and surrendered with the rest of the army.
Split into simpler sentences: The corps went to the Carolinas afterwards, fighting at the Battle of Bentonville. It surrendered with the rest of the army.