Culhwch's father, King Cilydd son of Celyddon, loses his wife Goleuddydd after a difficult childbirth.
They learn that the castle belongs to Ysbaddaden, that he stripped Custennin of his lands and murdered twenty-three of the shepherd's children out of cruelty.
Eventually, Ysbaddaden relents, and agrees to give Culhwch his daughter on the condition that he completes a number of impossible tasks (anoethau), including hunting the Twrch Trwyth and recovering the exalted prisoner Mabon ap Modron.
With the anoethau completed, Culhwch, Goreu and others who "wished ill to Ysbaddaden Bencawr" ride to his court.
Ysbaddaden's head is placed on the spike of the citadel, Goreu claims his uncle's lands as his own, and Olwen is free to marry her love.