The Omega IV virus was an illness from Omega IV, left over from a bacteriological war conducted on the planet long ago. The virus inhabited every aspect of the planet's biosphere; the indigenous population of Yangs and Kohms were naturally immune.
The virus was first discovered by the Federation in 2268 when the starship USS Exeter began a survey of the planet. Captain Ronald Tracey was interested in discovering why the planet's population possessed such a long life span, and beamed down with a landing party in an attempt to find out why. Thinking he had discovered a veritable "fountain of youth", he established relations with the Kohms while the rest of the landing party returned to the ship. A short time later, the entire crew of the Exeter was dead or dying.
The virus had been brought aboard by the un-immunized landing party, and spread quickly throughout the ship. It disrupted the body at the molecular level, separating water molecules from other organic compounds until there was nothing of the body left but dehydrated white crystals within a Starfleet uniform.
When the crew of the USS Enterprise came across the Exeter, they found uniforms filled with the grisly crystals and a log entry made by chief medical officer Dr. Carter, shortly before he died, warning them of the illness and imploring them to beam down to the planet immediately. There, Tracey explained to James T. Kirk and his landing party that Omega IV's atmosphere appeared to provide the only immunity to the virus, effectively marooning them on Omega IV. Dr. Leonard McCoy, through subsequent research, found this information to be incorrect. Only brief exposure to the planet's atmosphere was necessary to endow immunity; the real tragedy was that if Exeter's landing party had only spent a little more time on the planet's surface, they would not have affected the rest of the crew on returning. The indigenous population had long since built up immunity to the deadly germs utilized in the planet's earlier wars; people only lived longer on the planet because it was natural for them to. (TOS: "The Omega Glory")