Middleham Castle in Wensleydale, in the county of North Yorkshire, was built by Robert Fitzrandolph, 3rd Lord of Middleham and Spennithorne, commencing in 1190. It was built near the site of an earlier motte and bailey castle.