The castle visible today was probably built by Gruffydd II ap Madog son of Madog ap Gruffydd Maelor sometime in the 1260s. At the time Gruffydd II ap Madog was an ally of Prince Llywelyn ap Gruffydd Prince of Wales, with Powys acting as a buffer state between Llewelyn's heartland of Gwynedd and England. Dinas Brân was one of several castles being built following the signing of the Treaty of Montgomery which had secured Wales for Llywelyn, free from English interference. Indeed the castle at Dolforwyn Castle near Newtown ordered to be built by Llywelyn around the same time has some similarities to Dinas Brân and may have been the work of the same master mason. (Kightly, 2003)
Gruffudd died in 1269 or 1270 and the castle passed down to his four sons. Madoc the eldest son was the senior, but each of the sons may have had apartments at the castle. The peace between Llewellyn and Edward did not last long and in 1276 war started between England and Wales. Edward's larger armies soon invaded Wales and the support for Llewellyn crumbled. Two of the brothers made peace with Edward, the second brother Llewellyn and Madoc. However, the castle was not in Madoc's control as the surrender document with the English refers to conditions relating to the recapture of Dinas Brân. Meanwhile Henry de Lacy, Earl of Lincoln arrived in Oswestry with forces to capture Dinas Brân. As soon as he had arrived he was told that the defenders of the castle, probably the younger brothers Owain and Gruffudd - who were still allies of Llewellyn Prince of Wales, had set fire to and abandoned the castle. The reason for this action is not clear but it may be that they had no confidence that they could defend the castle against the English forces, and did not want to let it fall intact into Edward's, or their elder brother's hands. The castle was not badly damaged, the fire being mainly limited to the timber structures within the walls and Lincoln recommended to Kind Edward that the castle be repaired and garrisoned with English troops. Edward placed some troops at the castle at least into the next year 1277 when Llewellyn sued for peace and ordered some repair work to be undertaken. (Kightly, 2003)
The history of the castle during the final war which restarted in 1282 is not recorded. It may have been recaptured by the Welsh like many other castles in the early months of the war but ultimately the English were victorious. Madoc had by now died and the three surviving brothers all fought for the Welsh Prince but to no avail and following the end of the war in October 1282 and the death of Llewelyn Prince of Wales most of Powys Fadog and the castle was granted to John de Warenne, Earl of Surrey. Rather than rebuild Dinas Brân, De Warenne choose instead to build a new castle at Holt on the Flintshire, Cheshire border and Dinas Brân continued till the present day a picturesque and romantic ruin. (Kightly, 2003)
The Great Hall is sited on the castle's southern side, where some of the more visible remains still stand. This was a large room used for dining and receiving visitors. Its much enlarged windows still look south across the valley and an arched gateway leads from the west end of the room to what was once the Kitchens in the basement of the adjacent apsidal ('D' shaped) tower. This tower, called the Welsh Tower, is a typical feature of Welsh castles of the period. It would have protruded from the castle wall into the defensive ditch and provided archers with a clear view of any attackers attempting to approach the southern wall. The tower had perhaps three storeys with living quarters on the upper floors. In the south western corner was a Postern gate. This was an additional exit from the castle, designed to be used in times of siege to allow the garrison to 'sally' out and attack their besiegers. Fragments of the arch remain as well as the slot for the door's drawbar.(Kightly, 2003)
Originally, in the enclosed area of the castle there would have been stables, workshops, storage buildings and maybe a chapel but as these were built of wood nothing remains above ground level. (Kightly, 2003)
The castle first literary appearance is in a 12th century historical document entitled "Fouke le Fitz Waryn," or "The Romance of Fulk Fitzwarine." In this tale the castle, named "Chastiel Bran," is referred to as a ruin during the early years of the Norman Conquest. The tale continues to tell of an arrogant Norman knight, Payn Peveril, who hears that no one has had courage enough to stay overnight inside the castle ruins, for fear of evil spirits. Payn and 15 'knightly followers' determine to stay the night. A storm blows up and an evil, mace-wielding giant called Gogmagog, appears. Payn defends his men against the attacks of the giant with his shield and cross, then stabs Gogmagog with his sword. As the giant is dying he tells of the earlier bravery of King Bran who had built the castle to try to defeat the giant. Despite King Bran's attempts against Gogmagog the King had been forced to flee and since then the giant had terrorised all the land around for many years. The giant also tells of a great treasury of idols buried at Dinas Bran which includes swans, peacocks, horses and a huge golden ox but dies without revealing its location.(Oman 1926, 1989)
The castle is a scheduled ancient monument owned and maintained by Denbighshire council with the assistance of Cadw.