 Maelgwn is said to have held Elffin in captivity and Taliesin challenged his bards to a bardic contest for which Elffin was the prize.Taliesin won the contest and Elffin’s freedom, and also (correctly) prophesied Maelgwn’s death from a swamp-born pestilence.The poems "Prifardd ydwyf i Elffin" ("Primary Chief Bard am I to Elffin") and "Cân y Gwynt" ("Song to the Wind"), which are later medieval poems attributed to Taliesin, are amongst those that, according to some versions of the legend, he sang in the Contention.