The Línea P (P line), officially the Pyrenees Defense Organisation (), was a fortified line of defense built in the Pyrenees between 1944 and 1948 to prevent an invasion into Spanish territory.

After the end of the Spanish Civil War, the government of General Franco decided to build a defensive line in the Pyrenees, that would go from the Mediterranean to the Cantabrian Sea, approximately of fortified defensive points, stretching up to a depth of from the border. Some 8,000 – 10,000 bunkers were planned, of which approximately half were completed. Their garrison would have theoretically consisted of about 75,000 men. There is no evidence that the line was ever fully armed and operational.

The defensive points of the Línea P and its access roads were built by war prisoners and jailed political opponents of the Francoist regime grouped in (Workers’ Battalions) immediately after the Spanish Civil War and from 1940 to December 1942, in (Disciplinary Battalions of Workers-Soldiers)

In a broader sense, Línea P also refers to the successive Pyrenean fortifications built after the Spanish Civil War that would previous fortifications (1939–1940), the counter-tank defense (1950–1954) and other fortifications, such as those at Cape Higuer in Fuenterrabía, Guipúzcoa finished in 1957.

The Línea P was definitively abandoned after the Spanish army performed its last inspection in the 1980s.

Origin of the name Military historians often refer to this line of defensive fortifications along the French border as the "P Line" or the Pyrenees Line, in analogy with the French Maginot Line or the German Siegfried Line. However, at no time does "Línea P" appear in the official Spanish military archives.

The Línea P was also known pejoratively as "Pérez Line" and, in Catalonia, as the "Gutiérrez Line". However, the origin of such denominations have not been convincingly explained so far. It was also known in Catalonia as the "García Line", named after General Rafael García Valiño who participated in the fighting against the invasion of Val d'Aran by the Spanish Maquis.

History

After the end of the Spanish Civil War, hundreds of thousands of Republican soldiers and civilians crossed the French border ahead of the advancing Nationalist troops. Many Republican soldiers settled in the mountains of the Pyrenees and the Spanish Republican government in exile was formed in France. They continued to fight against Francoist Spain until the early 1960s, carrying out sabotage, robberies to help fund guerrilla activity, occupations of Spanish embassies in France and assassinations of Francoists, as well as contributing to the fight against Nazi Germany and the Vichy regime in France during World War II.

Following the Allied landing in French North Africa, Nazi Germany carried out "Operation Anton" on 11 November 1942, invading the southern zone of France for fear of a landing on the French Mediterranean coast. Beginning 1943, Nazi Germany started to build a line of fortifications in the Pyrenees, called , from Cerbere to Hendaye, along Le Perthus, Maurellàs, Las Illas, Prats-de-Mollo-la-Preste and the French Cerdagne and built coastal batteries in Le Barcarès, Torreilles, Sainte-Marie-la-Mer, Collioure et Port-Vendres which became part of the Südwall.

In August 1944, the liberation of France entered a decisive phase with the liberation of Toulouse and the south of France, giving the Spanish border a special significance. Neither General Franco nor Nazi Germany could ever manage to close the border effectively, as alternative routes to the usual ones were sought to cross it.

The exiled Republicans had high hopes that at the end of World War II in Europe, Franco would be removed from power by the victorious Allies and that they would be able to return to Spain. The (J.E.L.) in Mexico was first formed in November 1943, in an attempt to build a national committee inspired by the French Committee of National Liberation, and in Toulouse in August 1944.

The French provisional government was in a difficult situation in the autumn of 1944. While the war against Nazi Germany was continuing in the north of France, large areas of the liberated territory were not under its direct control and were in practice controlled by the Resistance and other guerrilla groups. Therefore, when Charles de Gaulle, head of the French provisional government, traveled to Toulouse on 16 September 1944 to pay tribute to the French Resistance and Spanish republican fighters that liberated Toulouse, the real objective of De Gaulle's visit was to bring Toulouse under the control of the French state. It was not in De Gaulle's best interest the Spanish republicans opened a second front in the Pyrenees and expressed his disagreement with any attempt to cross the Spanish border and return to the maquis.

The Spanish Maquis and exiled members of the Partido Comunista de Espana (PCE) started on 19 October 1944 the Invasion of Val d'Aran, known under the code name "Operation Reconquest of Spain" (). Between 4,000Raymond Carr: España 1808–1975. Ariel Historia, Barcelona, 2003. , "El PCE organizó entonces a 4.000 voluntarios para invadir España a través de los Pirineos,", that is, "The PCE then organized about 4,000 volunteers to invade Spain by way of the Pyrenees."Alfonso Domingo: El canto del búho. La vida en el monte de los guerrilleros antifranquistas. OberonMemoria, Grupo ANAYA, Madrid 2002. . "En total, de los 13.000 españoles que estaban en el maquis francés, unos 4000 se alistaron,", that is "In total, of the 13,000 Spanish that were with the French maquis, some 4000 were listed. and 7,000Secundino Serrano: Maquis. Historia de la guerrilla antifranquista. Editorial Temas de Hoy, Madrid, 2001. guerrillas, well equipped and with heavy weapons, entered Spanish territory through Val d'Aran and other parts of the Pyrenees. The objective of the offensive was to retake the sector of Spanish territory comprising the land between the Cinca and Segre Rivers and the French border. The zone was later declared conquered by the Spanish Republican government in exile to provoke a general uprising against Franco throughout Spain. It was hoped that it would force the Allies to "liberate" Spain the same way it was "liberating" the rest of Europe and that it would make the Spaniards who were against the regime revolt to end General Franco's dictatorship.

The main attack in the valley was accompanied by operations in other valleys of the Pyrenees during the previous weeks to distract Franco's forces. These other attacks were intended also to evaluate the situation in the interior of Spain and make contact with other groups of exiles. The most important points of penetration in the long chain of mountains were Roncesvalles, Roncal, Hecho, Canfranc, Val d'Aran, Andorra, and Cerdanya, though there were also operations at smaller points. The offensives were repelled by a great force that was moved into the area by Franco, made up of the Civil Guard, Armed Police Corps, battalions of the Spanish Army, and 40,000 Moroccan (Army of Africa) troops. The invasion of the Val d'Aran ended on 28 October 1944 in a complete failure for the Republican side, when the last guerrillas re-crossed the border back into France, without the hoped-for uprising. These attacks forced Franco to prepare for future similar attacks by deciding to fortify the Pyrenees.

In 1945, de Gaulle had all the Spanish Republican flags in France removed and definitively disowned the Junta Española de Liberación. Spanish republicans, after France and the Allies' rejection, were forced into a guerrilla war, known as the Spanish Maquis, and the Spanish Republic government-in-exile faded away to a symbolic role.

In an attempt to isolate the Franco regime, Félix Gouin, de Gaulle's successor as head of the French provisional government, decided on 26 February 1946 to close the border with Spain on 1 March 1946. On April 18, 1946, Polish ambassador Oskar Lange, supported by the Soviet Union, France and Mexico, asked the United Nations to condemn Spain as an aggressive country based on information that Franco was accumulating troops on the French border and fortifying the Pyrenees, but nobody knew that these works had already begun in 1939 earlier in the whole mountain range. This request was rejected thanks to Sir Alexander Cadogan, the British representative to the UN. Finally, the United States government communicated the results of a survey "that the fortifications in the Pyrenees were essentially defensive". On December 12, 1946, the UN General Assembly adopted Resolution 39, which excluded the Spanish government from international organizations and conferences established by the United Nations.

However, the Cold War caused the US government to change its attitude towards Francoist Spain, considering that Spain, due to its geographical situation and anti-communist government, would be a valuable asset to the so-called "free world" plans. Under these conditions, Spain was gaining sympathy among several member countries of the UN. In January 1950, Secretary of State Dean Acheson admitted that the Resolution 39 had been a failure, mentioning that the government was able to support a resolution that would end both issues. On 4 November 1950, the UN General Assembly adopted resolution 386, repealing the recommendation that prevented Spain from being a member of the International agencies established or linked by the United Nations. This resolution paved the way for Spain to join the United Nations system, which began in 1951 with the incorporation of UN agencies such as UPU, ITU, FAO and WHO, and completed with the accession of Spain to the United Nations in 1955.

Construction

The nationalist dictatorship of Franco thought of landscapes and mountain ranges as an integral part of the Spanish nation. The Spanish army was convinced at the end of the 1930s that fortifications in the Pyrenees could stop an army from entering through one of the mountain passes into Spain. Fortified defense lines were typical of Europe before World War II in the style of the Maginot, Siegfried, Mannerheim, Metaxás Lines.

In 1936, months before the Civil war, cavalry commander Sanjuán Cañete published a book on the Pyrenean border giving indications of possible defensive works to be done. More specifically Sanjuán Cañete carried out a detailed analysis of the network of trails and roads on the Pyrenees, adding considerations and proposals of a strategic nature. The thoroughness of this study was of great importance for the establishment of the bases of future defensive systems in the Pyrenees.

Since September 1940 there had been plans to fortify the Eastern Pyrenees (Catalonia) in the event of a possible invasion through Le Perthus with motorized troops. The plans were finalized in 1943. In August 1944, the Spanish Chief of Staff signed Instruction C-15 ordering the fortifications of the Pyrenees. The border area was to be divided into three sectors: Eastern Pyrenees (Catalonia), Central Pyrenees (Aragon) and Western Pyrenees (Navarra and Basque Country). Fortifications had not only to become part of the landscape but also to take advantage of the protection offered by nature. Defensive points were to be excavated in the rock and concealed with camouflage.

Started in the autumn of 1944, the construction of the Línea P was entrusted to the former military regions IV ( Catalonia and Valencia), V (Aragón and Soria) and VI (Navarra, País Vasco, Santander, Burgos, and Logroño) that bordered France. A large number of means and men (essentially conscript soldiers and forced labor) were mobilized for its construction.

To coordinate and carry out these building works, a center of operations was chosen within each zone to be fortified. In recent years, research has been published on the links between these works and the network of Francoist concentration camps.