After suffering many defeats and the atomic bombings of Hiroshima and Nagasaki , however , the Empire of Japan surrendered to the Allies on September 2 , 1945 .
The Empire of Japan surrendered to the Allies on September 2 , 1945 after the atomic bombings of Hiroshima and Nagasaki , after a long war against the Allied nations of World War II .