Complex sentence: Karl is the "Burgmeister," or mayor of the castle community, who keeps himself locked away in his office.
Split into simpler sentences: Karl is the "Burgmeister," or mayor of the castle community. He keeps himself locked away in his office.