The Melkot (or Melkotians) were a telepathic and xenophobic civilization from the Alpha Quadrant. The Melkot used their telepathic powers to punish aliens who encroached upon their space without permission (which, prior to 2268, they never extended).
The Federation made first contact with the Melkotians in 2268, when the USS Enterprise encountered an orbiting warning buoy. When Enterprise Captain James T. Kirk ignored the Melkot warning to leave their territory and instead, assumed orbit and beamed down a landing party, the Melkotians passed harsh judgment on the landing party, describing them as "aliens" and "disease" and condemning them to death for their trespass. The form of execution was to be by telepathic projection of illusions that would be indistinguishable from reality and incorporate into them a believable lethality. This illusion took the form of the famous gunfight at the OK Corral in Tombstone, Arizona, on October 26, 1881, between the Earps and the Clantons, a fight that the Clantons lost. Kirk and the members of the Enterprise crew were to fill the part of the Clantons, but managed to avoid death by having their psyches hijacked by Spock, who used the Vulcan mind meld to alter their perception of reality. Faced with the opportunity to kill the recreation of Wyatt Earp, Kirk instead discarded his weapon. At that point, the illusion dissolved and the Melkotian buoy exploded. The Melkot appeared on screen, intrigued by Kirk's display of mercy towards Earp, and suggested that the Enterprise visit Melkot, where a delegation would come out to meet them. (TOS: "Spectre of the Gun")