Theodemir or Theudimer (died 743) was a Visigothic comes (count) prominent in the southeast of Carthaginensis (the region around Murcia) 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 (possibly an equivalent for Valencia), Alicante, Mula, Bigastro, Eyya (probably Ojós), 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 (probably against the Arabs or Berbers) 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 and Berbers, but he was eventually defeated in pitched battle and made peace with the Muslim emir Abd 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 (4 Recheb 94 AH)." The treaty allowed that Christians who submitted to Muslim rule ("the patronage of God") 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 (or jugfuls) 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 Baghdad to have his treaty confirmed by the Caliph. However, it is unknown how long this treaty lasted in practice, whether it continued until Theudimer's death (which is recorded in the Chronicle of 754) 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 the historical novel Amaya o los vascos en el siglo VIII (1879), 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.
- Spanish: Teodomiro, Arabic: Tudmĩr or Tadmir.
- Wolf, Kenneth Baxter (September 1986). "The Earliest Spanish Christian Views of Islam". Church History (Church History, Vol. 55, No. 3) 55 (3): 281–293. doi:10.2307/3166818. JSTOR 3166818.
- "Pacto de Tudmir".
- Collins, The Arab Conquest of Spain, 39–41.
- Collins, Visigothic Spain, 109.
- Thompson, E. A. (1969). The Goths in Spain. Oxford: Clarendon Press. p. 249. ISBN 0-19-814271-4.
- Bachrach, Bernard S. (February 1973). "A Reassessment of Visigothic Jewish Policy, 589-711". The American Historical Review (The American Historical Review, Vol. 78, No. 1) 78 (1): 11–34. doi:10.2307/1853939. JSTOR 1853939.
- Thompson, 250.
- Collins, Visigothic Spain, 143.
- Collins, The Arab Conquest of Spain, 105.
- Collins, The Arab Conquest of Spain, 191.
- Collins, in Gerli, Medieval Iberia, 128.
- Amaya o los vascos en el siglo VIII, p. 276, Francisco Navarro Villoslada, 1973, Editorial La Gran Enciclopedia Vasca.
- Collins, Roger (1989). The Arab Conquest of Spain, 710–797. Oxford: Oxford University Press. ISBN 0-631-15923-1.
- Collins, Roger (2003). E. Michael Gerli, ed. Medieval Iberia: An Encyclopedia. London: Routledge.
- Collins, Roger (2004). Visigothic Spain, 409–711. Oxford: Blackwell Publishing. ISBN 0-631-18185-7.