After the death of Gilbert de Clare at the battle of Bannockburn in 1314, Edward II became guardian of De Clare's three sisters and heiresses. In 1315 he replaced de Badlesmere with a new English administrator, Payn de Turberville of Coity, who persecuted the people of Glamorgan. Then like many in northern Europe at the time, the region was in the throes of a serious famine. In coming to the defence of his people, Llywelyn Bren, the great grandson of Ifor Bach and Welsh Lord of Senghenydd incurred the wrath of de Turberville, who charged him with sedition. Llywelyn appealed to Edward II to call off or control his self-interested agent, but Edward ordered Llywelyn to appear before Parliament to face the charge of treason. The King promised Llywelyn that if the charges were found true, he would be hanged. Llywelyn fled and prepared for war. On 28 January 1316, Llywelyn began the revolt by a surprise attack on Caerphilly Castle. He captured the constable outside the castle and the outer ward but could not break into the inner defences. They burned the town, slaughtered some of its inhabitants and started a siege. The town was rebuilt but remained very small throughout the Middle Ages. The first evidence of its emerging importance was the construction of a court house in the 14th century, the only pre-19th century building remaining in the town.