The nuclear weapon was first detonated on 6 August 1945 , when the United States dropped a uranium gun-type device on the Japanese city of Hiroshima . The first event occurred on the morning of 6 August 1945 , when the United States dropped a uranium gun-type device code-named `` Little Boy '' on the Japanese city of Hiroshima .