It consists of a sequence of castles, prisons, law courts and other buildings, which were built over the last nine centuries on the south side of the River Foss.
Built originally on the orders of William I to dominate the former Viking city of Jórvík, the castle suffered a tumultuous early history before developing into a major fortification with extensive water defences.
Henry III rebuilt the castle in stone in the middle of the 13th century, creating a keep with a unique quatrefoil design, supported by an outer bailey wall and a substantial gatehouse.
During the Scottish wars between 1298 and 1338, York Castle was frequently used as the centre of royal administration across England, as well as an important military base of operations.
By the 20th century the ruin of Clifford's Tower had become a well-known tourist destination and national monument; today the site is owned by English Heritage and open to the public.
[14] Later that year, a Danish Viking fleet sailed up to York along the Humber and the Ouse, and attacked both castles with the assistance of Cospatrick of Northumbria and a number of local rebels.
[17][19] By the time the Domesday Book was written in 1086, York Castle was also surrounded by a water-filled moat and a large artificial lake called the King's Pool, fed from the river Foss by a dam built for the purpose.
[30] English Jews were subject to considerable religious prejudice and primarily worked from towns and cities in which there was a local royal castle that could provide them with protection in the event of attacks from the majority Christian population.
[29] Their religious leader, Rabbi Yomtob, proposed an act of collective suicide to avoid being killed by the mob, and the castle was set on fire to prevent their bodies being mutilated after their deaths.
[42] 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.
[46] In 1244, when the Scots threatened to invade England, King Henry III visited the castle and ordered it to be rebuilt in white limestone, at a cost of about £2,600.
[59] During the wars against the Scots under both Edward and his son, York Castle also formed the centre of royal administration in England for almost half the years between 1298 and 1338.
[77] By the 16th century it had become traditional to execute traitors by hanging them from the top of Clifford's Tower, rather than killing them at Micklegate Bar, the usual previous location for capital punishment in York.
[78] For most of the period the sheriffs of Yorkshire remained in control of the castle, although there were some notable exceptions such as the appointment of the royal favourite Sir Robert Ryther by Edward IV in 1478.
[82] Robert Redhead, the tower keeper, became infamous at the time for taking parts of the castle to pieces and selling off the stonework for his own profit.
[78] Despite numerous attempts by local city and crown officials to halt this, Redhead continued to cause considerable damage before being forced to stop.
[84] Maintaining the castle was becoming increasingly expensive, and in 1614 King James sold the lease on Clifford's Tower and the surrounding land to John Babington and Edmund Duffield, a pair of property speculators.
[91] Prince Rupert, sent to relieve York, approached with reinforcements, and through clever manoeuvring was able to force the besiegers to withdraw, lifting the siege on 1 July.
[101] The county facilities in the bailey were expanded during these years, with improvements to the Grand Jury House and the Common Hall, but by the 1680s the role of the military garrison at York Castle was being called into question.
[81] The now-ruined tower was returned fully to private ownership, eventually forming part of the lands of the neighbouring house and gardens belonging to Samuel Waud.
[63] A local tax helped to fund the development, and the king agreed for the ruins of St Mary's Abbey to be cannibalised for building stone.
A new county gaol, built between 1701 and 1705 by William Wakefield, was placed on the south side, closely resembling the fashionable work of John Vanbrugh.
[115] Attempts were made to improve the way executions were carried out from 1803 onwards: the former castle courtyard, the Eye of the Ridings, was used for this purpose instead, although crowds still gathered outside the bailey to watch the slow deaths of the prisoners.
[117] Sydney Smith, the famous wit, writer and vicar of Foston-le-Clay, successfully led a campaign to save Clifford's Tower, emphasising the historic importance of the location for the surrounding city.
[118] An alternative proposal, put forward by architect Robert Wallace, would have seen the conversion of Clifford's Tower back into a habitable building to form the hub of a radial prison design, but this was turned down.
[125] Some major trials took place at the Assizes (now Crown Court) building of York Castle in the 19th century, including that of Mary Fitzpatrick who was accused of murder.
The removal of the talus and the damage to the castle stonework in the 16th century had put excessive pressure on the supporting motte, causing a recurrence of the 14th-century subsidence.
Citizens, visitors, academics, environmentalists, local businesspeople and Jewish groups have opposed the development with some success, winning a lengthy and bitter public inquiry in 2003.
[136] In March 2022 an English Heritage conservation project, including work on the limestone fabric of the tower and care of the chapel roof, was completed.
New internal access stairways of gluelam timber leading to a new roof deck allow visitors a close view of some original features of the building and less-crowded viewpoints over the city.