The partly ruined Oxford castle was built in 1071 for William, the conqueror. It was largely destroyed after the English Civil War since it was used as a prison for destructed Royalists. Most of the original wooden structures and bailey castles were replaced with stone in the late 12th or beginning of the 13th century.