Corfe Castle is a fortification standing above the village of the same name on the Isle of Purbeck peninsula in the English county of Dorset. Built by William the Conqueror, the castle dates to the 11th century and commands a gap in the Purbeck Hills on the route between Wareham and Swanage. The first phase was one of the earliest castles in England to be built at least partly using stone when the majority were built with earth and timber. Corfe Castle underwent major structural changes in the 12th and 13th centuries.