In Welsh mythology, Gilfaethwy (Welsh pronunciation: [ɡɪlˈvɛɨθʊɨ]) was a son of the goddess Dôn and brother of Gwydion and Arianrhod in the Fourth Branch of the Mabinogi.
His uncle Math fab Mathonwy, king of Gwynedd, must keep his feet in the lap of a young virgin at all times unless he is going to war. Gilfaethwy lusts after Math's current foot holder, Goewin, so to get her alone he and Gwydion steal pigs from Pryderi, king of Dyfed, sparking a conflict between the neighboring kingdoms. While his uncle is off fighting, Gilfaethwy sneaks back to Gwynedd and rapes Goewin. Math is furious when he discovers this, and punishes his nephews by transforming them into a series of paired animals using his great skill in magic, thus impressing vividly upon them the brutish (and brutal) nature of their transgressions. For a year Gilfaethwy becomes a hind deer and Gwydion a stag; they mate and produce an offspring which is delivered to Math. Next Math makes Gilfaethwy a boar and Gwydion a sow; when they return a year later with a son he makes them wolves. After the third year he relieves them of their punishment and makes them human again.[1]
Gilfaethwy is a minor character in Welsh legend, and may have been used in the Fourth Branch simply to advance the story of his more illustrious brother Gwydion.