The Mabinogion (Welsh pronunciation: [mabɪˈnɔɡjɔn] ) is a collection of the earliest Welsh prose stories, compiled in Middle Welsh in the 12th–13th centuries from earlier oral traditions. There are two main source manuscripts, created c. 1350–1410, as well as a few earlier fragments. Often included in the broader mythologies described as the Matter of Britain, the Mabinogion consists of eleven stories of widely different types, offering drama, philosophy, romance, tragedy, fantasy and humour. Strictly speaking, the Four Branches of the Mabinogi are the main sequence of related tales, but seven others include a classic hero quest, "Culhwch and Olwen"; a historic legend, complete with glimpses of a far off age, in "Lludd and Llefelys"; and other tales portraying a very different King Arthur from the later popular versions.
The stories were created and amended by various narrators over a very long period of time, and scholars beginning from the 18th century predominantly viewed the tales as fragmentary pre-Christian Celtic mythology, or folklore. Since the 1970s, an investigation of the common plot structures, characterisation, and language styles, especially in the Four Branches of the Mabinogi, has led to an understanding of the integrity of the tales, and they are now seen as a sophisticated narrative tradition, both oral and written, with ancestral construction from oral storytelling, and overlay from Anglo-French influences.