In 1944 the Japanese government was shocked by the fall of Saipan. A cabinet headed by Imperial Army General Kuniaki Koiso replaced Tojo's government. This cabinet still held on to the idea of Japanese victory, calling for the Japanese people's spirit to overcome the shortages in war materiel and food. Secretly, the Emperor was working to end the war with Navy and civilian leaders who were sympathetic to ending the war. They had to be careful; military extremists had assassinated anyone who had attempted to oppose the war in the 1930's; and it was not inconceivable that they would assassinate the Emperor in his own name if he tried to openly work for peace.
The military government had thought that the West could not sustain public approval for the war. The Japanese strategic plan was to cause as many casualties as possible, hoping for the collapse of public support. The failure of the Japanese to understand the public unity after the attack on Pearl Harbor was a key factor in underestimating the Allied will to fight. Thousands of people died in the vain hope that the democracies would give up the fight in the face of heavy casualties. Except during 1944, when the western public's support of the war went down, the war was seen as necessary and support was overwhelming. Public disapproval of the war was socially unacceptable and the public sentiment never dropped below 80%. The strategy the Japanese followed was doomed to failure from the time the first bomb fell on Pearl Harbor.
With the surrender of Germany, the Japanese issued a proclamation that they would fight on alone on May 7, 1945. The Allies issued an unconditional surrender ultimatum during the Potsdam conference of July 26, 1945. A week before, the atomic bomb was successfully tested in New Mexico, and it was dropped on Hiroshima on August 6, 1945. The Soviets entered the war against Japan on August 8. A second bomb was dropped on August 9 on Nagasaki.
Emperor Hirohito issued a surrender announcement on August 14, 1945. The Second World War was over.