During a counter-offensive in 1109, the town was overrun by the Moors, but the Christianized fortress held.
Despite the town being overrun by Moors, the fortress did not fall.