Complex sentence: The battalion served as artillery for much of the war, and despite later being formally designated as infantry, it still retained artillery pieces throughout the conflict.
Split into simpler sentences: The battalion served as artillery for much of the war. Despite later being formally designated as infantry, it still retained artillery pieces throughout the conflict.