The Battle of Midway took place from June 4-7, 1942 in the Pacific Theater of World War 2. The Japanese aimed to draw out and destroy the remaining U.S. carriers to take control of Midway Atoll. However, U.S. codebreakers had cracked Japan's naval code and warned of their plan. In a major turning point, U.S. dive bombers surprised the Japanese fleet on June 4th, sinking four aircraft carriers in under 5 minutes. While the U.S. lost the carrier Yorktown, Japan suffered heavy losses that ended their offensive capabilities in the Pacific, shifting the war's momentum in favor of the Allies.