In many of the crucial battles of the Pacific, for instance Coral Sea and Midway, battleships were either absent or overshadowed as carriers launched wave after wave of planes into the attack at a range of hundreds of miles. The primary tasks for battleships in the Pacific became shore bombardment and anti-aircraft defense for the carriers. The two largest battleships ever constructed, Japan's Yamato class, which carried a main battery of nine 18.1-inch (460 millimetre) guns were designed to be a principal strategic weapons, but Yamato fired her main guns in only one engagement, while Musashi never fired her main guns in an engagement.