 York Castle continued to be garrisoned until 1684, when an explosion destroyed the interior of Clifford's Tower.The castle bailey was redeveloped in a neoclassical style in the 18th century as a centre for county administration in Yorkshire, and was used as a jail and debtors' prison.Prison reform in the 19th century led to the creation of a new prison built in a Tudor Gothic style on the castle site in 1825; used first as a county and then as a military prison, this facility was demolished in 1935.