<Dd> French--Thai </Dd> <Dd> Ecuadorian--Peruvian War </Dd> <P> The Battle of the Atlantic was the longest continuous military campaign in World War II, running from 1939 to the defeat of Germany in 1945 . At its core was the Allied naval blockade of Germany, announced the day after the declaration of war, and Germany's subsequent counter-blockade . It was at its height from mid-1940 through to the end of 1943 . The Battle of the Atlantic pitted U-boats and other warships of the Kriegsmarine (German navy) and aircraft of the Luftwaffe (German Air Force) against the Royal Canadian Navy, Royal Navy, United States Navy, and Allied merchant shipping . The convoys, coming mainly from North America and predominantly going to the United Kingdom and the Soviet Union, were protected for the most part by the British and Canadian navies and air forces . These forces were aided by ships and aircraft of the United States beginning September 13, 1941 . The Germans were joined by submarines of the Italian Royal Navy (Regia Marina) after their Axis ally Italy entered the war on June 10, 1940 . </P> <P> As an island nation, the United Kingdom was highly dependent on imported goods . Britain required more than a million tons of imported material per week in order to be able to survive and fight . In essence, the Battle of the Atlantic was a tonnage war: the Allied struggle to supply Britain and the Axis attempt to stem the flow of merchant shipping that enabled Britain to keep fighting . From 1942 onwards, the Axis also sought to prevent the build - up of Allied supplies and equipment in the British Isles in preparation for the invasion of occupied Europe . The defeat of the U-boat threat was a pre-requisite for pushing back the Axis . The outcome of the battle was a strategic victory for the Allies--the German blockade failed--but at great cost: 3,500 merchant ships and 175 warships were sunk for the loss of 783 U-boats . </P>

How did the allies primarily protect themselves in the atlantic ocean from u-boat attacks