 He maintained his position in Wales until his death in 1240 and was succeeded by his son Dafydd ap Llywelyn.Llywelyn was born about 1173, the son of Iorwerth ab Owain and the grandson of Owain Gwynedd, who had been ruler of Gwynedd until his death in 1170.Llywelyn was a descendant of the senior line of Rhodri Mawr and therefore a member of the princely house of Gwynedd.