In the tale of Pwyll, the earliest reference to Annwn, the Welsh mythological otherworld, occurs. It is ruled by Arawn, at war with Hafgan. Arawn obtains the help of Pwyll by exchanging kingdoms with him for a year, and Pwyll defeats Hafgan. Welsh