Complex sentence: The defensive purpose of the wall had by that time otherwise completely ceased and the wall survived mainly in its capacity as a toll barrier.
Split into simpler sentences: The defensive purpose of the wall had by that time otherwise completely ceased. The wall survived mainly in its capacity as a toll barrier.