After the capture of Okinawa, an invasion of the Japanese mainland was planned, codenamed Operation Downfall, the first stage of which would have been the invasion of Kyūshū island in November 1945. Due to the atomic bombings of Hiroshima and Nagasaki, Japan surrendered on 2 September 1945, bringing the Second World War to a close.