The surrender of the Empire of Japan in World War II was announced by Emperor Hirohito on 15 August and formally signed on 2 September 1945, ending the war. By the end of July 1945, the Imperial Japanese Navy (IJN) was incapable of conducting major operations and an Allied invasion of Japan was imminent. Together with the United Kingdom and China, the United States called for the unconditional surrender of Japan in the Potsdam Declaration on 26 July 1945—the alternative being "prompt and utter destruction". While publicly stating their intent to fight on to the bitter end, Japan's leaders (the Supreme Council for the Direction of the War, also known as the "Big Six") were privately making entreaties to the publicly neutral Soviet Union to mediate peace on terms more favorable to the Japanese. While maintaining a sufficient level of diplomatic engagement with the Japanese to give them the impression they might be willing to mediate, the Soviets were covertly preparing to attack Japanese forces in Manchuria and Korea (in addition to South Sakhalin and the Kuril Islands) in fulfillment of promises they had secretly made to the US and the UK at the Tehran and Yalta Conferences.
On 6 August 1945, at 8:15 am local time, the United States detonated an atomic bomb over the Japanese city of Hiroshima. Sixteen hours later, American President Harry S. Truman called again for Japan's surrender, warning them to "expect a rain of ruin from the air, the like of which has never been seen on this earth." Late on 8 August 1945, in accordance with the Yalta agreements, but in violation of the Soviet–Japanese Neutrality Pact, the Soviet Union declared war on Japan, and soon after midnight on 9 August 1945, the Soviet Union invaded the Japanese puppet state of Manchukuo. Hours later, the United States dropped a second atomic bomb, on the Japanese city of Nagasaki. Emperor Hirohito ordered the Supreme Council for the Direction of the War to accept the terms the Allies had set down in the Potsdam Declaration. After several more days of behind-the-scenes negotiations and a failed coup d'état, Emperor Hirohito gave a recorded radio address across the Empire on 15 August announcing the surrender of Japan to the Allies.
On 28 August, the occupation of Japan led by the Supreme Commander for the Allied Powers began. The surrender ceremony was held on 2 September, aboard the United States Navy battleship USS Missouri, at which officials from the Japanese government signed the Japanese Instrument of Surrender, ending the hostilities. Allied civilians and military personnel alike celebrated V-J Day, the end of the war; however, isolated soldiers and personnel from Japan's forces throughout Asia and the Pacific refused to surrender for months and years afterwards, some into the 1970s. The role of the atomic bombings in Japan's unconditional surrender, and the ethics of the two attacks, is debated. The state of war formally ended when the Treaty of San Francisco came into force on 28 April 1952. Four more years passed before Japan and the Soviet Union signed the Soviet–Japanese Joint Declaration of 1956, which formally brought an end to their state of war.