prisoners were confined, such as Gavin Douglas, Bishop of Dunkeld, who was a prisoner here in 1515. There is, however, also a dark postern which gives access to a rocky inlet from the sea, and it seems probable that it was through this that Sir Alexander Ramsay and his followers entered with a supply of provisions to the besieged in 1338. It was long said the castle was invulnerable, possibly because of the many sieges it sustained. The castle was built with a red stone similar to that found in the quarries near Garvald. Large masses of walls, which have fallen beneath the weight of time, appear to be vitrified or run together. In the north-west part of the ruins is an apartment about twelve feet square, and nearly inaccessible, which tradition states was the apartment of Mary, Queen of Scots. History Early history The Votadini or Gododdin are thought to have been the first to defend this site as its original Brythonic name, dyn barr, means 'the fort of the point'. By the 7th century, Dunbar Castle was a central defensive position of the Kings of Bernicia, an Anglian kingdom that took over from the British Kingdom of Bryneich. Northumbria During the Early Middle Ages, Dunbar Castle was held by an Ealdorman owing homage to either the Kings at Bamburgh Castle, or latterly the Kings of York. In 678 Saint Wilfrid was imprisoned at Dunbar, following his expulsion from his see of York by Ecgfrith of Northumbria. Later, Dunbar was said to have been burnt by Kenneth MacAlpin, King of the Scots. Certainly he is on record in possession of the castle. Kingdom of the Scots In the 10th and early 11th centuries, the Norsemen made increasing inroads in Scotland and in 1005 a record exists of a Patrick de Dunbar, under Malcolm II, engaged against the Norse invaders in the north at Murthlake a town of Marr where alongside Kenneth, Thane of the Isles, and Grim, Thane of Strathearn, he was slain. The first stone castle is thought to have been built by Gospatric, Earl of Northumbria, after his exile from England, following the Harrowing of the North, by William the Conqueror after Gospatric took refuge at the court of Malcolm III of Scotland. Gospatric was a powerful landowner in both kingdoms and could summon many men, which encouraged Malcolm to give him more lands in East Lothian,