Military history of Gibraltar during World War II The military history of Gibraltar during World War II exemplifies Gibraltar ' s position as a British fortress since the early 18th century and as a vital factor in British military strategy , both as a foothold on the continent of Europe , and as a bastion of British sea power . During World War II , Gibraltar served a vital role in both the Atlantic Theatre and the Mediterranean Theatre , controlling virtually all naval traffic into and out of the Mediterranean Sea from the Atlantic Ocean . In addition to its commanding position , Gibraltar provided a strongly defended harbour from which ships could operate in both the Atlantic and the Mediterranean . Force H , under the command of Vice - Admiral James Somerville was based in Gibraltar and had the task of maintaining naval superiority and providing a strong escort for convoys to and from the besieged island of Malta . During the course of the war , Gibraltar came under aerial bombardment from Vichy French aircraft and from aircraft of the Italian Royal Air Force ( " Regia Aeronautica " ) based on Sardinia . Additionally , the fortress was the focus of underwater attacks by the Italian Royal Navy ( " Regia Marina " ) commando frogman unit ( " Decima Flottiglia MAS " ) and their human torpedo es . This Italian unit was based on the interned Italian ship " SS Olterra " in the nearby Spanish harbour of Algeciras . A number of attacks were also carried out by Spanish and Gibraltarian agents acting on behalf of the German Abwehr . Inside the Rock of Gibraltar itself , miles of tunnels were excavated from the limestone . Masses of rock were blasted out to build an " underground city " . In huge man - made caverns , barracks , offices , and a fully equipped hospital were constructed , complete with an operating theatre and X - ray equipment . Operation Torch , the Allied invasion of French North Africa in November 1942 , was coordinated from the " Rock " . General Dwight D . Eisenhower , who was given command of the operation , set up his headquarters in Gibraltar during the planning phases of the operation . Following the successful completion of the North African campaign and the surrender of Italy in 1943 , Gibraltar ' s role shifted from a forward operating base to a rear - area supply position . The harbour continued to operate dry docks and supply depots for the convoy routes through the Mediterranean until V - E Day in 1945 . Prelude and evacuation . World War II dramatically changed the lives of Gibraltarians . The decision to enforce mass evacuation in order to increase the strength of the Rock with more military and naval personnel meant that most Gibraltarians ( some for up to ten years ) had nowhere to call ' home ' . Only those civilians with essential jobs were allowed to stay but it gave the entire community a sense of being ' British ' by sharing in the war effort . In early June 1940 , about 13 , 500 evacuees were shipped to Casablanca in French Morocco . However , following the capitulation of the French to the German armies later in June 1940 , the new Pro - German French Vichy Government found the presence of Gibraltarian evacuees in Casablanca an embarrassment and sought opportunities for their removal . The opportunity soon arose when 15 British cargo vessels arrived under Commodore Crichton , repatriating 15 , 000 French servicemen who had been rescued from Dunkirk . Once their own rescued servicemen had disembarked , the ships were interned until they agreed to take away all the evacuees . Although Crichton was unable to obtain permission to clean and restock his ships ( and contrary to British Admiralty orders which forbade the taking on of evacuees ) , when he saw the mass of civilians pouring through the dockyards , he opened up his gangways for boarding . Just recently , the British fleet had destroyed a number of French warships at Mers el - Kebir in order to prevent them ending up in German hands . The attack killed 1 , 297 French sailors and led to high tensions , which were evident when families were forced at bayonet point by French troops to board taking only what they could carry , leaving many possessions behind . However , when they arrived at Gibraltar , the Governor would not allow them to land , fearing that once the evacuees were back on the Rock , it would be virtually impossible to evacuate them a second time . Crowds gathered in John Mackintosh Square in the centre of Gibraltar as the news broke , speeches were made and two City Councillors accompanied by the Acting President of the Exchange and Commercial Library went to see the Governor ( Sir Clive Liddell ) to ask that the evacuees be allowed to land . After receiving instructions from London , a landing was allowed as long as the evacuees returned when other ships arrived to take them away from the Rock , and by 13 July the re - evacuation back to Gibraltar had been completed . British conservative politician Oliver Stanley agreed to accept the evacuees in the United Kingdom , but he argued with Gibraltar over the number of people involved . The Governor , he declared , had given the number of evacuees first as 13 , 000 , then as 14 , 000 and finally as 16 , 000 . He asked for the situation to be clarified , stressing the shortage of accommodation in Britain and insisting that only 13 , 000 could be accepted , 2 , 000 of whom were to be sent to the Portuguese Atlantic island of Madeira . The situation , replied General Liddell on 19 July , " is that this is a fortress liable to heave and immediate attack and there should be no civilians here whereas there are 22 , 000 . The 13 , 000 was the number sent to Morocco , and more would have been sent had the situation there not altered . " In London the evacuees were placed in the hands of the Ministry of Health , and many were housed in Kensington area . Concern for them in Gibraltar mounted as the air raids against London intensified , coupled with the arrival of harrowing letters , describing the circumstances in which the evacuees were living . In September rumours were already circulating among the evacuees , and in Gibraltar , that the possibility of re - evacuating the Gibraltarians once more was being mooted , this time the destination being Jamaica , in the West Indies . After much contention , it was decided to send a party directly from Gibraltar to the island , and 1 , 093 evacuees left for Jamaica direct , on 9 October , with more following later on . However petitions followed and the demands were met , partly for strategic reasons and the lack of available shipping . The situation at the end of 1940 , therefore , was that approximately 2 , 000 evacuees were in Jamaica and a lesser number in Madeira , with the bulk of around 10 , 000 housed in the London area . Royal Air Force involvement : 1939 – 1941 . Construction of a solid surface runway began in late 1939 and in 1940 it was proposed to extend the existing runway to a length of 1 , 550 yards ( 1 , 417 m ) . The land reclamation commenced towards the end of 1941 along with the construction of an RAF camp at the " North Front " , now RAF Gibraltar . The RAF dispatched their next squadron to Gibraltar at this time and it was in September 1939 that war with Germany was declared and the strong possibility of German submarine s concentrating in the Strait of Gibraltar and using Spanish port facilities , loomed large in Admiralty thinking . So at 09 : 00 ( UTC ) on the 9 September 1939 , No . 202 Squadron RAF was ordered to Gibraltar , loaded to the gunwales with equipment . On 25 September 1939 , " No 200 ( Coastal ) Group " was formed as a subordinate formation to HQ RAF Mediterranean in control of No 202 Sqn . The Group ' s function was the control of Royal Air Force units operating from Gibraltar . In late 1940 the Group was transferred to Coastal Command . Later a combined HQ was formed which commenced operations in early 1942 . Vichy French attacks : 1940 . On 18 July 1940 , after the destruction of the French Fleet at Mers - el - Kebir by the British , the Vichy government authorized a bombing raid of Gibraltar as a response . Little damage was reported to have been done . On Tuesday , 24 September , the Italian STEFANI News Agency reported : " As a reprisal for the bombardment of Dakar yesterday morning , one - hundred - and - twenty French aircraft based in Morocco attacked Gibraltar . " On the same day , the United Press Agency reported : " The French government has issued an official denial of reports , according to which French aircraft were said to have attacked Gibraltar . Up until now , no reprisals have been undertaken . " But the United Press report ended on an ominous note with : " French reprisals are imminent . " Again , on the same day , the Vichy French government issued orders for the naval base and city of Gibraltar to be bombarded . As a result , six bomber squadrons of the Vichy French Air Force ( " Armée de l ' Air de Vichy " ) and four squadrons of the Vichy French Navy ( " Marine nationale de Vichy " ) were employed in the operation . The 64 bombers flew from bases in Oran , Tafaroui ( in Algeria ) , Meknes , Mediouna , and Port Lyautey ( in Morocco ) . The French action was approved by both the German Armistice Commission and the Italian Armistice Commission . No British aircraft were encountered and much damage was done in the area south of the fortress . The South Mole and a large ship in the harbour were heavily damaged . In the northern part of Gibraltar , fires broke out . On 25 September , the French returned with a larger force of eighty - three bombers to cause additional damages to the naval base and harbour installations . Again , aircraft of the British Royal Air Force made no appearance . However , the French crews did report encountering heavy anti - aircraft fire . One LeO 451 bomber was lost and 13 other aircraft were lightly damaged during the two days of bombing attacks . The British armed trawler was sunk by bombs . The attack on 25 September was to prove to be the last air assault launched against Gibraltar by Vichy forces . Operation Felix : 1940 – 1941 . The Rock came through the war relatively unscathed but , given its strategic importance , Germany made plans to capture Gibraltar . Codenamed " Felix " , the plan which was signed by Adolf Hitler himself was formulated at the highest level of command . With or without permission , Germany would take entry through Spain and attack Gibraltar driving the British out of the Western Mediterranean . The Strait would be effectively closed to the Allies once Gibraltar was in German hands , forcing Asia - bound Allied shipping to steam all the way around Africa rather than to proceed to the east via the shorter route through the Mediterranean and the Suez Canal . The Rock was to be heavily dive bombed by planes leaving France but landing afterward at Spanish air bases . To deny a possible Spanish capture of the base , the German planners decided that the final attack to seize Gibraltar was to be made by German troops alone . Diplomatic failure at the highest levels of government prevented the operation from occurring at the beginning of 1941 which had been drawn up in detail by the Wehrmacht in the summer and autumn of 1940 . General Ludwig Kübler ' s XLIX Corps would conduct the actual attack on the Rock . The assault forces would comprise the Infantry Regiment Großdeutschland , the 98th Regiment of the 1st Mountain Division , 26 medium and heavy artillery battalions , three observation battalions , three engineer battalions , two smoke battalions , a detachment of 150 Brandenburgers , and up to 150 miniature remote controlled demolition vehicles ( Goliaths ) , packed with high explosives . As part of a combined - force operation , the German Air Force ( " Luftwaffe " ) would contribute Ju 88A s , Stukas , Messerschmitt s , three light AA battalions , and three heavy AA battalions . The German Navy ( " Kriegsmarine " ) would cooperate by using U - boat s to interfere with British naval movement and emplacing coastal batteries to further discourage the Royal Navy . On 10 March 1941 , with Operation Barbarossa looming , Felix was amended to " Operation Felix - Heinrich " , whereby German troops would be withdrawn from the USSR to capture Gibraltar . As a result of Spanish dictator Francisco Franco ' s intransigence , the operation was postponed , modified , and ultimately abandoned . Italian bombing of Gibraltar . From Sardinia , Italian Piaggio P . 108 bombers attacked Gibraltar several times , mainly in 1942 . The last raids on Gibraltar were done during the 1943 Allied landing in Algeria , when those bombers hit successfully even the Oran port . The only unit of the Regia Aeronautica ever to fly the Piaggio P . 108 was the " 274th Long - Range Bombardment Squadron " . This unit was formed in May 1941 around the first machines that came off the assembly lines . The training of the crews lasted far longer than anticipated and only in June 1942 the 274th became operational . The most spectacular raids with the P . 108 bombers were flown in October 1942 when several night attacks against Gibraltar were undertaken from Sardinia . After the Italian armistice , the puppet Italian Social Republic ' s Air Force carried out at least two raids on Gibraltar between 4 to 6 June 1944 . Italian frogmen raids 1940 – 1943 . Known as the " Floating Trojan Horse of Gibraltar " , " Decima Flottiglia MAS " , an Italian commando frogman unit created during the Fascist government engaged in numerous attacks against the harbour at Gibraltar . Gibraltar was a very tempting target for the Italians , who saw it as a refuge for British warships and allied merchant shipping . The Italian frogmen originally used a Spanish villa ( " Villa Carmela " ) located two miles ( 3 km ) from Gibraltar owned by an Italian officer who had married a Spanish woman named Conchita Ramognino . Their base was shifted later to the Italian tanker SS " Olterra " , interned in Algeciras . Abwehr saboteurs from Spain . Lesser known than the Italian actions were the sabotage operations and limpet - mine attacks carried out by Spanish and Gibraltarian agents recruited in the Campo de Gibraltar by the Germans . The " Abwehr " contacted a Spanish staff officer from Campo de Gibraltar , Lieutenant Colonel Eleuterio Sánchez Rubio , a Spanish officer , member of the Falange and coordinator of the intelligence operations in the Campo , to establish a network of saboteurs with access to Gibraltar . Sánchez Rubio designated Emilio Plazas Tejera , also a member of Falange , as operations chief of the organisation . The most of the recruits for the sabotage operations were Spaniards from the Campo . A combination of financial reward , ideological commitment and some threats and intimidation were used to gather a significant number of agents . According to the British intelligence , there were at least 183 Spaniards and Gibraltarians involved in the espionage and sabotage operations against Gibraltar . Sabotage operations were ordered from Berlin in the late autumn of 1940 , but actual work did not start until early 1941 . The first operations were unsuccessful . A first attempt to smuggle a bomb into Gibraltar was aborted , as the timing device was faulty . In February there was a large explosion in the North Tunnel , and in April a bomb blew up near the airfield . In June 1941 , however , the British intelligence foiled a new attempt , by a German agent , to attach a mine alongside an Allied cargo ship . Another attempt failed when Plazas placed a bomb inside an ammunition store but was not able to bring the explosive . It was not until 1942 that the operations begun to succeed . In January 1942 , two Spanish agents manage to destroy two aircraft at the North Front landing strip . Financed , trained and equipped by the Germans , the saboteurs sank the armed trawler , and destroyed the auxiliary minesweeper , which resulted in the deaths of six British seamen on 18 January 1942 . Plazas was assisted by the Spanish naval commander of Puente Mayorga , Manuel Romero Hume , who allowed him to beach a rowboat there . The British intelligence was able however to counteract the sabotage operations . In March 1942 , a Gibraltarian , José Key , one of the most prominent agents working for the Germans , responsible for the collection of information on military movements for the " Abwehr " was arrested and executed in Wandsworth Prison in late 1942 . By September 1942 , Plazas , whose activities were closely monitored by the British at that time , resigned and left Carlos Calvo , his second in command , in charge of the operations . In late 1942 , the German headquarters in Berlin ordered the sabotage operations being expanded . In early 1943 , the arrival of an experienced head of " Abwehr " operations in Spain improved the outreach of the operations . In March 1943 an ammunition dump was blown up by Calvo ' s agents . The British , growing suspicious of some of the saboteurs , banned them from entering Gibraltar . This forced the " Abwehr " to ask Calvo for new personnel . A Spaniard working on the Rock , José Martín Muñoz , was responsible for the explosion and fire at a large fuel tank at Coaling Island on 30 June 1943 ; this mission , however , would be the first and the last for Muñoz , because he was cornered and arrested by British authorities in August , when he tried to smuggle a bomb into a weapons magazine inside Ragged Staff Cave . After being sentenced to death , he was hanged on 11 January 1944 in Gibraltar by British executioner Albert Pierrepoint . A member of an unrelated " Abwehr " sabotage network , Luis López Cordón - Cuenca ( also arrested in 1943 ) was executed by Pierrepoint on the same day . Calvo himself was put under arrest by the Spanish police and neutralized . He would be a free man again in December , when he rejoined the " Abwehr " in Madrid , under direct orders of Wolfgang Blaum , aka Baumann , head of the sabotage section in Spain . After a Falangist attempt against the life of pro - allied General José Enrique Varela , perpetrated by Sánchez Rubio network ' s agent Juan José Domínguez and a meeting between Anthony Eden and the Spanish ambassador at London , Jacobo Fitz - James Stuart , " Abwehr " activities around Gibraltar came to an end . Operation Tracer : 1941 – 1942 . Operation Tracer was a top - secret British stay - behind spying mission that was only to be implemented if Gibraltar was captured by the Axis Powers . Six men were to be sealed in a cave and left with only enough supplies for a year . The volunteers — two doctors , three signalmen and their leader — would run an observation post with one by slit looking over the harbour and a concealed outdoor terrace over the Mediterranean . The team would then wire back all shipping movements to the British Admiralty . They were told there would be no way out and anyone who died within the chamber would have to be embalmed and cemented into the brick floor . Only if Germany was defeated within their first year would they be released . As the threat of invasion was clearly felt in late 1941 , an idea for a series of secret observation posts ( first in Gibraltar and later in other places like Malta and Aden ) was put together under " Operation Tracer " . Work in Gibraltar began immediately under Commander Geoffrey Birley and his chief engineer Colonel Fordham . The site chosen at Lord Airey ' s Battery on the southern tip of the Rock already had an existing tunnelling scheme for a shelter . Extensive trials of the equipment began in January 1942 under the eye of MI6 radio expert Colonel Richard Gambier - Parry . Much thought was also given to the type of men needed for such a strange and demanding task . A member of Scott ’ s ill - fated expedition to the Antarctic , Murray Levick was called up as Surgeon - Commander to advise on survival techniques . There were practical matters such as diet , exercise , sanitation , and clothing to consider as well as vital " psychology of the personnel " . The full team was in place by the end of summer 1942 and their cavern fully equipped and ready for occupation . A comprehensive manual was prepared on all aspects of the operation and it was considered that similar secret lookout posts should be prepared throughout the world in the event of future wars . However , Operation Tracer was never needed , as Adolf Hitler turned his attention away from Gibraltar and towards the Eastern Front . The operation had been clouded in mystery until the discovery of papers at the Public Records Office in Kew UK . Previously in the 1960s , details of the story were told to a journalist by his intelligence service contacts and he wrote these up as " Operation Monkey " , yet facts were very sparse . In 1997 " Stay Behind Cave " ( as it was nicknamed ) was discovered in Gibraltar by the Gibraltar Caving Group , but no account was ever obtained from anyone associated with the mission . The discovery came about when the group encountered a strong gust of wind in a tunnel . Further searching led them to break through a wall into chambers which had never been used and had remained sealed for over 50 years . In November 2006 Jim Crone and Sergeant Major Pete Jackson , senior tunnel guide with the Royal Gibraltar Regiment , met possibly the only member of Operation Tracer still alive when they travelled to meet Dr . W . A . Bruce Cooper at his home in England . Cooper , 92 at the time , provided an opportunity to shed light on the operation with his direct involvement in the mission as a Surgeon - Lieutenant in the Royal Navy Volunteer Reserve ( RNVR ) . He recalled stories about his colleagues , his training , and his feelings about the task . Mediterranean U - boat Campaign : 1941 – 1944 . The Mediterranean U - boat Campaign lasted approximately from 21 September 1941 to May 1944 . The German Navy ( " Kriegsmarine " ) tried to isolate Gibraltar , Malta , and Suez and disrupt Britain ' s trade routes . More than sixty U - boats were sent to interdict Allied shipping in the Mediterranean Sea . Many of these U - boats were themselves attacked negotiating the Strait of Gibraltar controlled by Britain . Nine U - boats were sunk while attempting passage and ten more were damaged . North African Campaign : 1942 . Plans for the Allied counter offensive after the attack on Pearl Harbor were ongoing by mid - 1942 . An invasion of Europe in 1943 would be unworkable , but the allies could attack the " soft underbelly of Europe " through the Mediterranean , as Prime Minister Winston Churchill put it . Devised by President Franklin Roosevelt and Churchill and code named Operation Torch , the plan was to occupy French North Africa : Morocco , Algeria , and Tunisia . From these French colonies , attacks could be launched that would drive Italy out of the war . In July 1942 , Lieutenant General Dwight D . Eisenhower was appointed Allied Commander - in - Chief of Operation Torch . Churchill placed Gibraltar under the command of General Eisenhower as the temporary headquarters for this , the first large - scale Anglo - American operation of the war . He arrived in Gibraltar on 5 November 1942 to take over , not just command of Operation Torch itself , but also military command of Gibraltar . General Eisenhower stayed at " The Convent " , the official Governor ' s residence , but his operational headquarters were in a small chamber in a tunnel in the heart of the Rock . In his memoirs General Eisenhower wrote : One hundred thousand soldiers on the high seas in a multitude of transports converged on Gibraltar . More than 400 aircraft of all types were crammed into the dispersal areas around the Gibraltar runway . Fighters had been shipped in crates and assembled on the airfield . Every available area of storage was taken up with ammunition , fuel , and other essential supplies . 168 American pilots were housed in the RAF messes at " North Front " . On 8 November 1942 , 466 aircraft from Gibraltar landed on captured North African airfields . From their headquarters in Gibraltar , General Eisenhower and Admiral Sir Andrew Browne Cunningham directed Operation Torch , the first major combined combat operation during World War II involving American and British forces . War tunnels . Given that Gibraltar was a small town with only a few defences protecting it , the solution was to build a massive series of tunnels and chambers inside the natural protection of the Rock of Gibraltar . This " town " inside the Rock contained its own power station , water supply , and hospital . Some soldiers posted here would not see the light of day for months on end . Two Canadian engineer companies , the only soldiers with diamond - tipped drills and 5 British engineer companies , added some of such tunnels , a feat thought impossible at the time . That was enough to hold all 30 , 000 troops on the rock . Today , the rock has more underground tunnels than roads . Death of Władysław Sikorski : 1943 . On 4 July 1943 , a Liberator bomber from RAF Transport Command took off from Gibraltar for England . On board was General Władysław Sikorski , Prime Minister of Poland ' s London - based government in exile and Commander - in - Chief of its armed forces , returning from visiting Polish troops in the Middle East . The aircraft climbed normally from the runway , levelled off to gather speed but then suddenly lost height and crashed into the harbour . The 62 - year - old general died , along with 15 others . The sole survivor was the Czech - born pilot , Eduard Prchal , who was rescued by an RAF launch . The bodies of five passengers and crew , including Sikorski ' s daughter , were never found . The coffins of General Sikorski and his Chief - of - Staff , General Kilimecki , were draped in the Polish National Flag and lay in state in the Cathedral of St . Mary the Crowned . After a Requiem Mass , the bodies were carried in procession to the H . M . Dockyard with full Military Honours to be shipped to London in anticipation that General Sikorski ' s remains would one day be returned to a liberated Poland . The route to the dockyard was lined by British troops and the coffins carried and escorted by Polish Servicemen . Investigation . In 1943 a British Court of Inquiry investigated the crash of Sikorski ' s Liberator II " AL523 " , but was unable to determine the probable cause , finding only that it was an accident and the " aircraft became uncontrollable for reasons which cannot be established " . A popular theory was insufficient technical maintenance leading to jamming aircraft controls . Despite this finding , the political context of the event , coupled with a variety of curious circumstances , immediately gave rise to speculation that Sikorski ' s death had been no accident , and may in fact have been the direct result of a Soviet , British or even Polish conspiracy . Aftermath . The surrender of Italy in September 1943 lifted any possible objections to the return of the evacuees to the Rock . As a result a Resettlement Board was established in November , and at a meeting of the Board on 8 February 1944 repatriation priorities were finally agreed . On 6 April 1944 the first group of 1 , 367 repatriates arrived on the Rock directly from the United Kingdom and on 28 May , the first repatriation party left Madeira , and by the end of 1944 only 520 non - priority evacuees remained on the island . In London , home - comers were making claims on the evacuees ’ wartime accommodation and 500 Gibraltarians were re - evacuated to Scotland and 3 , 000 to camps in Northern Ireland . Although the Governor , Lt . General Sir Noel Mason - MacFarlane , fought valiantly on behalf of the evacuees and did not accept the lack of accommodation as a sufficient reason for the delays . As late as 1947 there were still 2 , 000 in Northern Irish camps . The last of the evacuees did not see the Rock again until 1951 .