Following his grandfather's death in 1240, Llywelyn's uncle, Dafydd ap Llywelyn (who was Llywelyn the Great's eldest legitimate son), succeeded him as ruler of Gwynedd.
This freed Dafydd ap Llywelyn's hand as King Henry could no longer use Gruffudd against him, and war broke out between him and King Henry in 1245.