Following the Christian victory over the Moors, as an act of thanksgiving for the intercession of the Blessed Virgin in the battle, the city was dedicated to the Virgin Mary as "Civitas Virginis" (the city of the Virgin), and put under the patronage of Our Lady of Vendôme.