Japan accepted the terms of the Potsdam Declaration upon its surrender to the Allies after the use of atomic bombs on Hiroshima and Nagasaki.