Theodemir or Theudimer was a Visigothiccomes prominent in the southeast of Carthaginensis during the last decades of the Visigothic kingdom and for several years after the Moorish conquest. He ruled seven cities in southeastern Spain, mentioned in the Treaty of Orihuela that was preserved by the Andalusian historian Ibn Adarí in the thirteenth century: Orihuela, Valentila, Alicante, Mula, Bigastro, Eyya, and Lorca. Sometime probably during the joint reign of Egica and Wittiza, a Byzantine fleet raided the coasts of southern Iberia and was driven off by Theudimer. The dating of this event is disputed: it may have occurred as part of Leontios' expedition to relieve Carthage, under assault by the Arabs, in 697; perhaps later, around 702; or perhaps late in Wittiza's reign. What is almost universally accepted is that it was an isolated incident connected with other military activities and not an attempt to reestablish the province of Spania, lost in the 620s. As E. A. Thompson states, "We know nothing whatever of the context of this strange event." After the defeat of king Roderic at the Battle of Guadalete in 711 or 712, Theudimer resisted the invading Arabs, but he was eventually defeated in pitched battle and made peace with the Muslim emirAbd al-Aziz ibn Musa. "The text of the treaty he signed has been preserved in at least three separate sources, including a fourteenth-century biographical dictionary, and is dated to 5 April 713." The treaty allowed that Christians who submitted to Muslim rule would be spared their lives and allowed to continue living with their families according to their mores and practising their Catholic faith in their churches, but they were required to pay a tribute per capita and to turn over any enemies of the conquerors to the government. The tribute consisted of one dinar, four measures each of wheat, barley, grape juice, and vinegar, plus two of honey and oil; and half this for slaves. Theudimer retained his land and his local authority. Theudimer later travelled to Damascus to have his treaty confirmed by the Umayyad Caliph. However, it is unknown how long this treaty lasted in practice, whether it continued until Theudimer's death or after, or was cut short before his death. His prominence in the region is testified by the number of later Gothic nobles in the same region who tried to claim descent from him. The region itself was given the commemorative name Tudmir by the Arabs. Theudimer left a son, Athanagild, who was described as very wealthy by the Chronicle, but whether or not he was his successor is debated by scholars. If he did succeed, he would have done so around 740, but his fate is unknown and the region of Tudmir had lost its independence by the 780s.
In fiction
In the historical novelAmaya o los vascos en el siglo VIII, the characters mention Teodomiro "duke of Aurariola and Baetica, general prevost of the army" as one of those who successfully resist Islamic dominance along with Pelayo of Asturias and García Jiménez of Navarre.