 The castle passed on through Edward I , who found the castle in an apparently poor condition , and his second wife , Margaret , to Edward II . Edward II gave it to his royal favourite , Piers Gaveston , whom he made Earl of Cornwall . Gaveston was married there in 1307 , with Edward in attendance . Edward II and Gaveston fell from power in 1327 and John , Edward 's second son , took possession as the new Earl of Cornwall . 
