Prior to the Battle of midway Japan had destroyed any enemies they had in the pacific. At the battle of midway Japan lost four aircraft carriers and majority of their naval fleet thus causing them to loose control over the Pacific, causing the overall momentum of the war to shift out of japans favor.