Gruffydd ap Llywelyn (c. 1198 – 1 March 1244) was the Welsh first-born son of Llywelyn the Great ("Llywelyn Fawr"). His mother Tangwystl probably died in childbirth.
As a boy, Gruffydd was one of the hostages taken by King John of England as a pledge for his father's continued good faith. A clause in Magna Carta (1215) compelled his release. On his father's death in 1240, under Welsh law, he would have been entitled to consideration as his father's successor. Llywelyn however had excluded him from the succession and had declared Dafydd, his son by his wife Joan, to be heir to the kingdom. Llywelyn went to great lengths to strengthen Dafydd's position, probably aware that there would be considerable Welsh support for Gruffydd against the half-English Dafydd.
Gruffydd was held a prisoner by his brother Dafydd when the latter took over Gwynedd. Following a successful invasion of the Welsh borders by King Henry III of England in 1241, Dafydd was obliged to hand over Gruffydd into the king's custody, he was then taken to London and imprisoned in the Tower of London. Gruffydd's wife, Senana (possibly a daughter of Caradoc ap Thomas of Anglesey), agreed to pay Henry 600 marks for the release of her husband and their eldest son, Owain, and to hand over her two youngest sons, Dafydd and Rhodri, to the king as hostages to ensure that she kept her part of the bargain. Henry did not keep his part however, and kept Gruffydd and his son imprisoned as "guests" because this continued to give him the possibility of using Gruffydd as a weapon against his brother.
However, Gruffydd died while attempting to escape from the Tower in 1244. He is said to have used an improvised rope made from sheets and cloths to lower himself from his window, but as he was a heavy man, the rope broke and he fell to his death.
In 1248, the abbots of Strata Florida and Aberconwy arranged for the return of his body to Wales, where he was buried at Aberconwy with his father.