The Japanese did not surrender after the dropping of the first atomic bomb. In fact, when the emperor decided to surrender after the second bomb was dropped, there was a revolt in the palace. Furthermore, the only alternative to dropping the bombs was an invasion of mainland Japan. Casualty estimates, for both the Allies and Japanese, for an invasion of Japan were in the millions.