Gruffudd ap Llywelyn (c. 1010 – 5 August 1063) was the first and only Welsh king to unite all of Wales under his rule from 1055 to 1063. He had also previously been King of Gwynedd and Powys from 1039 to 1055. Gruffudd was the son of Llywelyn ap Seisyll, King of Gwynedd, and Angharad, daughter of Maredudd ab Owain, King of Deheubarth, and the great-great-grandson of Hywel Dda. After his death, Wales was again divided into separate kingdoms.