Aircraft carriers became the crucial weapon of the Pacific war. American seaborne forces seized a succession of Pacific islands from which aircraft could bomb the Japanese mainland. By mid-1945, Allied victory in the Pacific was assured. Japanese refusal to surrender and the prospect of a costly and difficult invasion of Japan prompted the new president, Harry Truman, to approve the use of the war's greatest secret weapon, the atomic bomb.