What caused the Japanese to surrender?

The Allies captured Iwo Jima.
The Allies invaded Japan.
General MacArthur captured the Philippines.
The U.S. dropped atomic bombs on Hiroshima and Nagasaki.