The genetics
Cloning drives the episode. Keniclius, a scientist linked to the franchise's fictional Eugenics Wars, prolongs his own life through a series of clones and plans to build a peacekeeping force from a cloned, enlarged Spock. He is portrayed less as a villain than as a misguided idealist acting alone, whose experiments have already devastated a native population by accident. The episode treats a clone as receiving a full mind and memories through a transfer of consciousness, and makes clones giant, which has no basis in real cloning: a clone is a genetic copy that develops normally and does not inherit memories. Writer Walter Koenig, who played Chekov in the original series, said the cloning plot was inspired by newspaper articles on the subject at the time.
The story
While surveying the planet Phylos for possible colonization, the Enterprise landing party meets its plant-like inhabitants, who save Sulu from a poisonous walking plant. The Phylosians explain that they were nearly wiped out by a disease brought to their world by Dr. Stavos Keniclius, a human scientist who survived Earth's Eugenics Wars. A giant clone of Keniclius, Keniclius 5, kidnaps Spock. Keniclius has lived for centuries by moving his consciousness into successive, more advanced clone bodies, and he believes the galaxy is still as ravaged by war as Earth was. To impose peace, he creates a giant clone of Spock and transfers Spock's mind into it, leaving the original body an empty shell. The new Spock mind-melds with the original to save his life, and the two Spocks and Kirk convince Keniclius that his plan is unnecessary. Spock Two and Keniclius 5 stay behind to help rebuild Phylosian civilization.