Following Japan's devastating December 1941 attack on Pearl Harbor and a subsequent six months of rapid, largely unchecked expansion across the Pacific, Japanese naval command planned an attack on Midway Atoll, intending to draw the diminished American Pacific Fleet into a decisive battle that would eliminate American naval power in the Pacific once and for all. Critically, American codebreakers had partially cracked Japanese naval communications, giving Admiral Chester Nimitz advance knowledge of the attack's timing and target — a significant intelligence advantage, though one that still required Japan's larger, more experienced carrier force to actually be defeated in battle rather than simply avoided.
The battle's decisive moment came on the morning of June 4, 1942, when American dive bombers from the carriers Enterprise and Yorktown arrived over the Japanese fleet at what proved to be a catastrophically vulnerable moment: Japanese carriers had their flight decks crowded with aircraft being refueled and rearmed for a second strike, having just recovered aircraft from an earlier mission, with bombs and fuel lines exposed across the decks — conditions that meant the American bombs that struck within the following few minutes caused enormously destructive secondary explosions among the exposed ordnance and fuel, sinking three Japanese carriers (Akagi, Kaga, and Sōryū) within minutes of each other; a fourth, Hiryū, was sunk later the same day. The United States lost one carrier, Yorktown, in the engagement. The battle eliminated four of Japan's most experienced carriers and, more significantly, a substantial proportion of Japan's most experienced naval aviators, a loss from which Japan's naval air power never fully recovered for the remainder of the war.