Complex sentence: However, in 1812--13, the First French Empire annexed Catalonia during the Peninsular War ("Guerra del francés") and divided it in four départements, with Andorra being made part of the district of Puigcerdà (département of Sègre).
Split into simpler sentences: However, in 1812--13, the First French Empire annexed Catalonia during the Peninsular War ("Guerra del francés"). They divided it into four départements, with Andorra being made part of the district of Puigcerdà (département of Sègre).