The Battle of Midway took place from June 4-7, 1942 at the US Mid-Pacific base at Midway atoll between the Japanese and US Pacific fleets. The Japanese planned to capture Midway to destroy the US Pacific Fleet, but the US anticipated this due to code breaking and launched a surprise attack, sinking four Japanese aircraft carriers and defeating their planes. This resulted in an Allied victory that marked a major turning point in the Pacific War against Japan.