In the 13th century a Berber outpost named Anfa existed in the south of the city. Anfa was repeatedly destroyed by the Portuguese between 1486 and 1489, and was renamed after a white house (“Casa Branca”; later, “Casa Blanca” in Spanish) that stood on the ruins of the city.