Complex sentence: Late in the afternoon, the king's own battalion attempted to retreat, but was unsuccessful and David II was captured (though not without difficulty), while the rest of the Scottish army was pursued for more than twenty miles.
Split into simpler sentences: Late in the afternoon, the king's own battalion attempted to retreat. The retreat was unsuccessful and David II was captured (though not without difficulty) while the rest of the Scottish army was pursued for more than twenty miles.