While the castle was under construction, town walls were built around Caernarfon. The work cost between £20,000 and £25,000 from the start until the work ended in 1330. Although the castle appears mostly complete from the outside, the interior buildings no longer survive and many of the building plans were never finished. The town and castle were sacked in 1294 when Madog ap Llywelyn led a rebellion against the English. Caernarfon was recaptured the following year. During the Glyndŵr Rising of 1400–1415, the castle was besieged. When the Tudor dynasty ascended to the English throne in 1485, tensions between the Welsh and English began to diminish and castles were considered less important. As a result, Caernarfon Castle was allowed to fall into a state of disrepair. Despite its dilapidated condition, during the English Civil War Caernarfon Castle was held by Royalists, and was besieged three times by Parliamentarian forces. This was the last time the castle was used in war. The castle was neglected until the 19th century when the state funded repairs. The castle was used for the investiture of the Prince of Wales in 1911 and again in 1969. It is part of the World Heritage Site “Castles and Town Walls of King Edward in Gwynedd”.