Complex sentence: They found the Confederates had just evacuated the fort, so they occupied it without opposition and set about repairing the damage inflicted by the Confederates as they left.
Split into simpler sentences: They found the Confederates had just evacuated the fort. They occupied it without opposition and set about repairing the damage inflicted by the Confederates as they left.