In 1314, Pope Clement V, the first pope to be based in Avignon, died at the castle when travelling from Châteauneuf-du-Pape to his birthplace in Gascony. Later in the 14th century, Louis I, Duke of Anjou was a frequent visitor. He was the second son of John II of France and brother of Charles V of France. He used the castle as a base for his negotiations with the popes in Avignon. In 1385 John, Duke of Berry entertained a Hungarian ambassador at the castle while four years later in 1389 Charles VI stayed with a large entourage. Then in 1420 his son Charles Dauphin of Viennois visited the castle. He would become Charles VII of France on his father's death in 1422. Although regularly maintained in this period, the castle gradually ceased to have its earlier importance.