Complex sentence: Barbara spent most of her time in Hungary, while her spouse devoted his time to his other thrones, and she served as the regent of Hungary during his absences in 1412,1414,1416 and 1418.
Split into simpler sentences: Barbara spent most of her time in Hungary, while her spouse devoted his time elsewhere. She served as the regent of Hungary during his absences in 1412,1414,1416 and 1418.