 The castle was kept in good repair during that time.During this period, the first records of the use of the castle as a jail appeared, with references to prisoners taken during John's Irish campaigns being held at York Castle.By the 13th century there was a well-established system of castle-guards in place, under which various lands around York were granted in return for the provision of knights and crossbowmen to assist in protecting the castle.