He was married (
c. 680) to
Cixilo (also known as Cixilona, Cioxillo, or Cixila), the daughter of his royal predecessor
Erwig and that king’s wife
Liuvigoto. On his deathbed on 14 November 687, Erwig confirmed Egica as his heir and sent him with the royal court to
Toledo to be crowned. He was anointed on 24 November. Upon Egica's marriage to Cixilo, Erwig had made him swear an oath to protect Erwig's children. Before his death Erwig required a second oath, swearing not to deny justice to the people. Shortly after taking the throne, Egica called the
Fifteenth Council of Toledo on 11 May 688, at which he claimed the two oaths were contradictory (because to do justice to the people required "harming" Erwig's children) and asked the council of bishops to release him from one or the other. Egica, however, met the opposition of
Julian of Toledo. The council allowed Egica to abandon his wife but only partially rescinded the oath to protect Erwig's children. Egica waited until Julian's death in 690 to call a second provincial council of
Tarraconensis, which resulted in Erwig's widow, Liuvigoto, being sent to a convent. ==Notable events==