Hailes Castle is one of Scotland's oldest stone castles, dating from the early 1200s in a pretty valley of the River Tyne near East Linton in East Lothian. Originally built by the de Gourlay family, the castle passed to the Hepburn family in the mid-1300s and became associated with notable historical figures including James Hepburn, 4th Earl of Bothwell, who may have been born here. Mary Queen of Scots and Bothwell stayed at the castle en route to their 1567 wedding in Edinburgh. The surviving structure includes 13th-century enclosure walls, pit prisons, a 14th-century tower, and 15th-16th-century domestic buildings, managed by Historic Environment Scotland and open year-round.