The Battle of Midway, fought in World War II, took place on June 5, 1942. The United States Navy defeated a Japanese attack against Midway Atoll, marking a turning point in the war in the Pacific theater, The American code breakers worked to decrypt the complex Japanese ciphers. It was a game of chess to anticipate the enemy's next move.