The Battle of the Atlantic, the longest continuous military campaign in World War II, ran from 1939 to the defeat of Nazi Germany in 1945, covering a major part of the naval history of World War II. At its core was the Allied naval blockade of Germany, announced the day after the declaration of war, and Germany's subsequent counterblockade. The campaign peaked from mid-1940 to the end of 1943.
The Battle of the Atlantic pitted U-boats and other warships of the German Kriegsmarine (navy) and aircraft of the Luftwaffe (air force) against the Royal Navy, Royal Canadian Navy, United States Navy, and Allied merchant shipping.