According to the 9th-century Chronicle of Alfonso III, Erwig was the son of Ardabast, who had journeyed from the Byzantine Empire to Hispania during the time of Chindasuinth, and married Chindasuinth's niece Goda. Ardabast (or Artavasdos), was probably an Armenian or Persian Christian exile in Constantinople or in Byzantine Africa. In Hispania he was made a count.
After his predecessor Wamba had taken the monastic habit while on the verge of death, he was forced to retire from the kingship, even though he recovered, and enter a monastery. He appointed Erwig his successor and the latter was anointed in Toledo on 31 October 680. Later, 9th-century legends attributed to Erwig the poisoning of the king, who was made a penitent by his supporters while Erwig's supporters raised him to the throne. The bishops of the Twelfth Council of Toledo, which Erwig opened on 9 January 681, confirmed that the documents of abdication and confirmation of Erwig from Wamba were authentic and contained his own signature. Nonetheless, some historians have seen in the rapidity of Erwig's unction after the king had received the penitential sacrament evidence for a pre-planned palace coup.
Erwig began his reign in a climate of uneasiness concerning the way in which he reached the throne. Probably feeling insecure himself, the nobles and bishops took advantage. Erwig restored to favour those who had been out of it in the time of Wamba. After the Twelfth Council, the Thirteenth (683) and Fourteenth (684) followed in quick succession. The councils confirmed Erwig's legitimacy for a second time and wrote many laws to protect the life and rule of the king and his family, including that of his queen, Liuvigoto.
After falling seriously ill, Erwig proclaimed his son-in-law Ergica, the husband of his daughter Cixilo, as his heir on 14 November 687 and retired to a monastery as a penitent the next day, after giving leave to his court to return to Toledo with Egica for the anointing and crowning.
Erwig issued 28 laws condemning Jews with the support of the Twelfth Council. He himself stated to the council his desire to return to the legislation of the reign of Sisebut, though he was a little more lenient, dispensing with the death penalty. These laws were part of a revised and expanded version of the Liber Iudiciorum which is attached to Erwig's name. All of the laws, dealing with Jews, have been attributed to the influence of Julian of Toledo, the fanatically anti-Jewish archbishop of Toledo. When the Ervigian code was promulgated in November 681, Erwig had added six more of his own new laws and three laws of Wamba, as well as revised eighty laws of Recceswinth. There is no evidence, however, that the Ervigian code "superseded" the Recceswinthian and manuscripts of both continued to be produced and sold.
Declaring them a plague on the kingdom, he called for their total removal from the kingdom. Such a decree had been issued by Erwig's predecessor Wamba and much as that one Erwig's also failed. So in 681 he issued another decree, this time requiring that all Jews become Christians or leave the kingdom. Jews were officially discriminated against from henceforth as the monarchy attempted to restrict Jewish commercial activities.
- Collins, Roger. Visigothic Spain, 409–711. Blackwell Publishing, 2004.
- Livermore, Harold. The Twilight of the Goths: The Rise and Fall of the Kingdom of Toledo, c. 565–711. Bristol: Intellect, 2006.
- Murphy, Francis X. "Julian of Toledo and the Fall of the Visigothic Kingdom in Spain." Speculum, Vol. 27, No. 1. (January, 1952), pp 1–27.
- Thompson, E. A.. The Goths in Spain. Oxford: Clarendon Press, 1969.
- Continuité des élites à Byzance durante les siècles obscurs. Les princes caucasiens et l'Empire du VIe au IXe siècle. 2006.
- Also spelled Ervig, or Herwig.
- For the imperial tradition behind this name, see Flavius.
- Collins, Visigothic Spain, 102.
- Livermore, Twilight of the Goths, 76.
- Collins, Visigothic Spain, 98.
- Collins, Visigothic Spain, 104.
- Also spelled Cixilona, Cioxillo, or Cixila, she married around 670. She was Erwig's daughter by his wife Liuvigoto (born c.620), daughter of Suintila and Theodora.
- Collins, Visigothic Spain, 105.
- Murphy, Julian of Toledo, 13.
- Collins, Visigothic Spain, 236.
| King of the Visigoths