Complex sentence: Otto was the last legitimate male-line descendant of Charlemagne and the Carolingian dynasty, though there remained illegitimate male lines.
Split into simpler sentences: Otto was the last legitimate male-line descendant of Charlemagne and the Carolingian dynasty. Although Otto was the last legitimate Carolingian, there remained illegitimate male lines.