The main wing was built in the 15th century... and the remaining towers and walls around the 12th century.