In the season 9 opener "Avalon", Vala seeks out Daniel at Stargate Command (SGC) and prevents him from going to Atlantis. The discovery of an Ancient communication device transports their minds to a village in a distant galaxy where they make contact with the Ori. Vala and Daniel can return to Earth safely, but unintentionally bring the Ori threat to the Milky Way. After Vala is accidentally transported to the Ori galaxy in "Beachhead", Daniel reunites with Vala aboard one of the invading Ori ships in the season 10 opener "Flesh and Blood." After their escape, Daniel speaks up in support of Vala's request to join the SGC. With the ancient Merlin's knowledge, Daniel builds the Sangraal in "The Quest". Vala's rapidly matured daughter Adria captures Daniel and turns him into an Ori Prior in "The Shroud" to convert the Tau'ri to the path of Origin, but Daniel returns to his normal self at the end of the episode. In "Unending", the last episode of the series, SG-1 gets stuck in a time dilation field aboard the Earth ship "Odyssey", and a romance between Vala and Daniel comes to fruition. Before the time dilation field is reversed after fifty years, erasing all linked memories in the process, Daniel and Vala express their feelings for each other.