Llywelyn the Great (, ; full name Llywelyn ap Iorwerth; c. 117311 April 1240) was a King of Gwynedd in north Wales and eventually "Prince of the Welsh" (in 1228) and "Prince of Wales" (in 1240). By a combination of war and diplomacy he dominated Wales for 45 years. During Llywelyn's childhood, Gwynedd was ruled by two of his uncles, who split the kingdom between them, following the death of Llywelyn's grandfather, Owain Gwynedd, in 1170. Llywelyn had a strong claim to be the legitimate ruler and began a campaign to win power at an early age. He was sole ruler of Gwynedd by 1200 and made a treaty with King John of England that year. Llywelyn's relations with John remained good for the next ten years. He married John's natural daughter Joan in 1205, and when John arrested Gwenwynwyn of Powys in 1208, Llywelyn took the opportunity to annex southern Powys. In 1210, relations deteriorated, and John invaded Gwynedd in 1211. Llywelyn was forced to seek terms and to give up all lands east of the River Conwy, but was able to recover them the following year in alliance with the other Welsh princes. He allied himself with the barons who forced John to sign Magna Carta in 1215. By 1216, he was the dominant power in Wales, holding a council at Aberdyfi that year to apportion lands to the other princes. Following King John's death, Llywelyn concluded the Treaty of Worcester with his successor, Henry III, in 1218. During the next fifteen years, Llywelyn was frequently involved in fights with Marcher lords and sometimes with the king, but also made alliances with several major powers in the Marches. The Peace of Middle in 1234 marked the end of Llywelyn's military career, as the agreed truce of two years was extended year by year for the remainder of his reign. He maintained his position in Wales until his death in 1240 and was succeeded by his son Dafydd ap Llywelyn. Genealogy and early life 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. He was probably born at Dolwyddelan the royal manor of Nanyconwy, though not in the present