Why did Japan surrender to the United States after the united states bombed hiroshima and nagasaki?

Japan surrendered because of the threat that more atomic bombs would be dropped, and ultimately destroy Japan.