Complex sentence: By the end of the 14th century, the castle bailey was primarily occupied by the local county administration, being used extensively as a gaol and with prisoners being kept in the various towers around the bailey.
Split into simpler sentences: By the end of the 14th century, the castle bailey was primarily occupied by the local county administration. It was used extensively as a gaol, with prisoners being kept in the various towers around the bailey.