Col. O'Neil had secret orders to bring a nuclear bomb to the planet and detonate it as a preemptive strike if it appeared as though Earth would be attacked by an alien threat. Ra discovered the bomb, transported it to his ship, and reconfigured it - making it much more destructive - intent on sending it through the stargate to explode on Earth. Col. O'Neil, Dr. Jackson, and their team from Earth assist the people of Abydos in a successful battle against Ra. They discover what Ra has done with the bomb and, at the last moment, while Ra is attempting to escape through his ship, they transport the bomb up to his ship, utterly destroying him. Col. O'Neil returns to Earth. Dr. Jackson remains on Abydos with his newly wed wife, Sha'uri.