 The Peace of Middle, agreed on 21 June, established a truce of two years with Llywelyn, who was allowed to retain Cardigan and Builth.This truce was renewed year by year for the remainder of Llywelyn's reign.In his later years, Llywelyn devoted much effort to ensuring that his only legitimate son, Dafydd, would follow him as ruler of Gwynedd and amended Welsh law as followed in Gwynedd.