The Battle of Midway was a pivotal naval battle in the Pacific Theater of World War II. It took place from June 4 to June 7, 1942, approximately one month after the Battle of the Coral Sea, and six months after the Empire of Japan's attack on Pearl Harbor that had led to a formal state of war between the United States and Japan. During the battle, the United States Navy defeated a Japanese attack against Midway Atoll (located northwest of Hawaii) and destroyed four Japanese aircraft carriers and a heavy cruiser while losing a carrier and a destroyer. The battle was a crushing defeat for the Japanese and is widely regarded as the most important naval battle of World War II. The battle permanently weakened the Japanese Navy, particularly through the loss of over 200 naval aviators. Strategically, the U.S. Navy was able to seize the initiative in the Pacific and go on the offensive.