The first test of a nuclear weapon occurred in the United States on July 16, 1945, at the Alamogordo Bombing Range in south-central New Mexico. The test was code-named Trinity.