The genetics
Genetics defines the villain rather than the plot. Khan, introduced in the 1967 episode "Space Seed" to which the film is a sequel, is one of a group of genetically engineered superhumans bred to be free of ordinary mental and physical limitations, who in Star Trek's history controlled more than a quarter of the Earth during the "Eugenics Wars" of the 1990s before being overthrown. The film relies on that backstory: Khan's strength, intellect and arrogance are presented as products of his design, and his pride and obsession with revenge are his downfall, as Kirk exploits his lack of experience. Behind the space opera lies a warning about eugenics: engineered superiority produces not better people but would-be rulers. The scientists in the film, Carol and David Marcus, work on the Genesis Device, not on genetics. The history imagined by the franchise did not come true: there was no genetic enhancement of humans in the 1990s, and the first gene-edited babies, born in China in 2018, led to the scientist responsible being sentenced to prison.
The story
In 2285, Admiral James T. Kirk is restless behind a desk. The starship Reliant, searching for a lifeless planet on which to test the Genesis Device, a technology that turns dead matter into habitable worlds, lands by mistake on Ceti Alpha V. There Captain Terrell and Chekov are captured by Khan Noonien Singh, a genetically engineered tyrant whom Kirk exiled fifteen years earlier and whose followers, including his wife, died when the planet became a wasteland. Using mind-controlling eels, Khan seizes Reliant, attacks the Regula I station where Kirk's former lover Carol Marcus and their son David developed Genesis, and steals the device. Kirk lures him into the Mutara Nebula, where his inexperience in three-dimensional combat costs him the battle. Mortally wounded, Khan activates Genesis. To save the crippled Enterprise from the blast, Spock repairs the warp drive in the irradiated engine room and dies of radiation poisoning; his coffin lands on the newly formed Genesis planet.