Complex sentence: Unable to take the town by force, Stuart disengaged, ordering the Carlisle Barracks to be set on fire by his men, and then began to move towards the fighting at Gettysburg.
Split into simpler sentences: Unable to take the town by force, Stuart disengaged, ordering the Carlisle Barracks to be set on fire by his men. Stuart then began to move towards the fighting at Gettysburg.