Edward II gave Wallingford Castle first to his royal favourite, Piers Gaveston, and then to his young wife, Isabella of France, with large sums still being spent on the property. Edward continued to use the castle as a royal prison for holding his enemies, until his own fall from power in 1326; Isabella, who overthrew her husband, then used it as an early headquarters following her invasion of England. Her son, Edward III, ultimately settled the castle on the new title of the Duke of Cornwall, used by sons of the king.