Complex sentence: The archduke left the army with 2,000 cavalry and rushed back to Barcelona, while the rest of the army marched in two detachments.
Split into simpler sentences: The Archduke left the army with 2,000 cavalry, and hurried back to Barcelona. The rest of the army marched in two detachments.