The castle area became the regular place of executions in York in the early 1800s, replacing the Tyburn on the Knavesmire.[2] The new gallows were completed on 8 March 1801 at a cost of £10 and 15 shillings and were first used for the execution of a cattle thief, Samuel Lundy, on 11 April 1801.[6] Condemned criminals were hanged in this space, known as 'the Drop', between the Assize Courts and the bailey wall until 1868. From 1868 to 1896 executions took place inside the prison walls at the north end of the Female prison.[2] A total of 153 men and 7 women were hanged in the Castle precincts between April 1801 and December 1896.[6]
Mary Bateman, known as the 'Yorkshire Witch', was executed at the Castle on 20 March 1809.[6]
A 1998 archaeological excavation immediately to the north of the Female prison located five graves, thought to date between 1802 and 1826. The skeletal remains were analysed and are thought to represent executed prisoners from the site.[7] One of the skeletons, an adult female (aged 18–25 at death), had had a post-mortem craniotomy performed on her, though it is unclear whether this was performed as an autopsy or for anatomical dissection in the interests of science.[8] The Murder Act 1752 stipulated that only the corpses of murderers could be used for dissection, though this was changed by the Anatomy Act 1832 which provided provision for surgeons and physicians to access cadavers that were unclaimed after death.