Complex sentence: The donjon was used for several functions; besides serving as another defensive structure, it had a chapel and living quarters.
Split into simpler sentences: The donjon was used for several functions. Besides serving as another defensive structure, it had a chapel and living quarters.