While earlier evidence for human occupation is abundant, Dundee's success and growth as a seaport town arguably came as a result of William the Lion's charter, granting Dundee to his younger brother, David (later Earl of Huntingdon) in the late 12th century. The situation of the town and its promotion by Earl David as a trading centre led to a period of prosperity and growth. The earldom was passed down to David's descendants, amongst whom was John Balliol. The town became a Royal Burgh on John's coronation as king in 1292. The town and its castle were occupied by English forces for several years during the First War of Independence and recaptured by Robert the Bruce in early 1312. The original Burghal charters were lost during the occupation and subsequently renewed by Bruce in 1327.