Llywelyn the Great (WelshLlywelyn Fawr) was a Prince of Gwynedd in North Wales and eventually de facto ruler over most of Wales. By a combination of war and diplomacy he dominated Wales for forty years, and was one of only two Welsh rulers to be called 'the Great'. During Llywelyn's boyhood Gwynedd was ruled by two of his uncles, who had agreed to 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 the same year. Llywelyn's relations with John remained good for the next ten years. He married John's illegitimate daughter Joan in 1205, and when John arrested Gwenwynwyn ab Owain of Powys in 1208 Llywelyn took the opportunity to annex southern Powys.