The folk etymology holds that Charlemagne had named the region as a reference to the Biblical Canaanite valley of Endor or Andor (where the Midianites had been defeated), a name bestowed by his heir and son Louis the Pious after defeating the Moors in the "wild valleys of Hell".