Oberon is a king of the fairies in medieval and Renaissance literature. He is best known as a character in William Shakespeare's play A Midsummer Night's Dream, in which he is Consort to Titania, Queen of the Fairies.
Oberon's status as king of the fairies comes from the character of Alberich (from Old High German alb- "elf" and -rîh-, "ruler", "king"), a sorcerer in the legendary history of the Merovingian dynasty. In the legend, he is the otherworldly "brother" of Merowech, whose name is the eponym of the Merovingians but whose actual existence is unproven. Alberich wins for his eldest son, Walbert, the hand of a princess of Constantinople. In the Nibelungenlied, a Burgundian poem written around the turn of the 13th century, Alberich guards the treasure of the Nibelungen, but is overcome by Siegfried.
The name Oberon is first attested to in the early 13th century chanson de geste entitled Les Prouesses et faitz du noble Huon de Bordeaux, wherein it refers to an elven man of the forest encountered by the eponymous hero. Huon, son of Seguin count of Bordeaux, passed through the forest inhabited by Oberon. He was warned by a hermit not to speak to Oberon, but his courtesy had him answer Oberon's greetings, and so gain his aid in his quest. Huon had killed Charlot, the Emperor's son, in self-defense, and so he must visit the court of the amir of Babylon and perform various feats to win a pardon. He succeeds only with Oberon's aid.