	By the end of the 14th century, the castle bailey was primarily occupied by the local county administration. It was used extensively as a jail, with prisoners being kept in the various towers around the bailey. The old castle-guard system for securing the castle had changed into a system whereby the crown used rents from local royal lands to hire local guards for the castle. Increasingly, royalty preferred to stay at the Franciscan friary, between the Castle and King's Staith on the Ouse, while their staff resided at St Mary's Abbey and St Andrew's Priory in the Fishergate area.