In 1313,
James II of Aragon granted administrative and political autonomy to the Aran Valley, the legal details of which are described in a
Latin manuscript called the
Querimonia. The devolution of power was a reward for the Aranese pledging allegiance to James II in a dispute with the kingdoms of France and Mallorca over control of the valley. In 1411 the Valley was confirmed as part of the
Principality of Catalonia by the Catalan parliament at the request of the Syndic of Aran himself. This status was upheld during the
Nueva Planta decrees in 1707-1716, but suppressed in 1834 when the Valley was integrated into the new Province of Lleida, in the context of the establishment of the Spanish provinces at the beginning of the liberal state. On 19 October 1944,
Spanish Communist Party guerrillas
invaded the valley in an attempt to bring about the fall of the Spanish
dictatorship. They took control of several villages until October 27, 1944, but were forced to retreat back into France after Franco sent reinforcements to defend Vielha. Before the construction of the
Vielha tunnel, opened in 1948, the Aran valley had no direct communication with the south side of the mountains during winter. In 1987 it became an administrative comarca. In 1990 the special status of Aran within Catalonia was restored by the
Parliament of Catalonia, reestablishing the Conselh Generau, granting it a degree of home rule and declaring Occitan as official language. In 2015 the Catalan Parliament passed a new law which increased the powers of the Conselh Generau and recognized Aran as an "Occitan national reality". The population of Val d'Aran has generally been opposed to the
Catalan independence movement due to lack of a strong Catalan identity. ==Name and local language==