Based on the information Vala gave them, SG-1 travels to the planet where Merlin may have hidden his secret weapon to defeat ascended beings. There they find an appropriately medieval village and learn that Merlin kept a library there. The locals have never been inside owing to a curse on anyone who dares enter, but SG-1 finds a way in. Once inside, they find a secret chamber that may reveal the location of the weapon. The SGC, meanwhile, has located the Ori's Supergate. Sam's attempt to get control of it is too late, and four Ori ships make their way through. In the ensuing battle, much of Earth's fleet is destroyed, and the future of several SGC members is left in doubt.