The first nuclear weapons were built by the United States during World War II. Two nuclear weapons were used to attack cities in Japan. These were the only times when nuclear weapons were used in war. 