 Today Cerdanya is a Catalan "comarca".The region had been conquered by the Moors in the early 8th century.In 731, the Moorish governor of Cerdanya allied himself with Odo the Great by marrying his daughter, at Odo's insistence, in order to secure his southern frontier from further Muslim expansion.