The current castle was built in 1180, replacing a 9th century wooden castle.