SG-1 gates to BP6-3Q1, a planet with cities at least as advanced as Earth's. But the people are gone, the city deserted. The team quickly discovers why: a swarm of huge insects fly towards them. The team escapes back to Earth, but Teal'c has suffered from the terrible sting of one of the giant bugs.At the suggestion of Captain Carter, they call in Dr. Timothy Harlowe, a leading geneticist with whom Carter had once worked. The insect's venom, it seems, is rewriting Teal'c's own DNA code. It is the alien's way of reproduction: the victim's own DNA is rewritten, until nearly a dozen new bugs burst forth from his corpse.
Colonel Maybourne appears on the scene (he was notified by Harlowe, who is not as trustworthy as Carter believed he would be), and takes Teal'c out of the S.G.C. facility for further study. As they travel away from Cheyenne Mountain, Maybourne reveals to Harlowe that he wants Teal'c transformation to run its course. His desire is not to cure Teal'c, but to study the insect venom as a potential biological weapon.
Teal'c has other ideas. He is beginning to lose his mind because of the venom's effects, and he renders the men unconscious and -- after removing his larval Goa'uld and depositing it on the van floor -- escapes into the woods.
The race is on to find him. O'Neill wishes to bring him back to the S.G.C. for treatment, while Maybourne (with superior forces and jurisdiction) wants to capture and study Teal'c.
At the request of Dr. Harlowe, the rest of SG-1 returns to the alien world and captures another insect for study. Harlowe and Dr. Frasier study the bug and determine a cure for Teal'c's ailment. They also manage to keep his larval symbiote alive in the laboratory.
Hiding in a dark, abandoned building, Teal'c is befriended by a neighborhood girl -- herself a misfit. Ally helps Teal'c hide from Maybourne's men, and brings him candy bars to eat. Finally, she realizes that his transformation can't be what he really wants. She contacts Colonel O'Neill, who comes for his friend.
Teal'c's symbiote is replaced, and he slowly begins to heal along with the help of some experimental RNA drugs. Once fully restored, he returns to the abandoned building to find Ally and thank her. She loves water guns, so Teal'c brings her one "with greater range and fire power."