The Manhattan Project was a secret US military project during World War II to develop the first atomic bombs. It was led by US physicist Robert Oppenheimer and General Leslie Groves, and involved research facilities at Oak Ridge, Tennessee, Hanford, Washington, and Los Alamos, New Mexico to produce weapons-grade materials. The first nuclear device was successfully tested at Alamogordo, New Mexico in July 1945, and two atomic bombs were subsequently dropped on the Japanese cities of Hiroshima and Nagasaki in August 1945, leading to Japan's surrender. The Manhattan Project officially ended in 1946 when it was incorporated into the new Atomic Energy Commission.