A deranged doctor escapes to the Enterprise from a planetary penal colony. As Kirk investigates, he is brainwashed by the colony's maniacal director.