Yester Castle is a ruined castle, located 1.5 miles (2.4 km) south east of the village of Gifford in East Lothian, Scotland. The only remaining complete structure is the subterranean Goblin Ha' or Hobgoblin Ha' (Goblin Hall). It is a Scheduled Ancient Monument, recorded as such by the Royal Commission on the Ancient and Historical Monuments of Scotland (RCAHMS).
Originally known as Yestred (from the Brythonic Ystrad, meaning strath or dale), the barony of Yester was granted by King William the Lion to Hugo de Giffard, a Norman immigrant given land in East Lothian during the reign of King David I.
The original stone keep, built before 1267, is generally considered to be by Sir Hugo de Giffard. A grandson of the first Laird of Yester, he served as a guardian of the young Alexander III of Scotland, and was by repute a magician and necromancer. Alexander III is known to have been at Yester on and around May 24, 1278, where he corresponded with Edward I of England. Following the Scots Wars of Independence, Yester was rebuilt as a castle of enceinte.
In 1298, during the Battle of Falkirk, Alexander de Welles, Master of Torphichen Preceptory, was killed. Based on the heraldic evidence there is very little doubt that Alexander de Welles was a member of the Lincolnshire Welle(s) family. Also at Falkirk was Adam de Welle(s) of Lincolnshire and of the Castle of Yester in Lothian, to whom the English King Edward I, during his occupation of Scotland, gave various properties confiscated from the Lothian nobility and gentry.