Original: It was the ancient capital of Cerdanya in antiquity, before being replaced by Hix (commune of Bourg-Madame, France) in the Middle Ages.
Simplified: The city was the ancient capital of Cerdagne in antiquity. In the early Middle Ages, Hix (commune of Bourg-Madame, France) became the capital of the region.