The frontier lawman appears in Spectre of the Gun as part of a Melkotian recreation of Tombstone in 1881, leading the Earp faction that is fated to gun down Kirk's landing party.
Wyatt Earp, the lawman of the American West, appears in the Original Series episode Spectre of the Gun, played by Ron Soble.
As punishment for trespassing in their space, the Melkotians place Kirk, Spock, McCoy, Scott and Chekov in a half-finished illusion of Tombstone, Arizona, on 26 October 1881, cast as the Clanton gang who died at the O.K. Corral. Wyatt, his brothers Virgil and Morgan and Doc Holliday are grim, black-clad figures who will not listen to Kirk's attempts to make peace.
At the appointed hour the Earps open fire, but Spock's mind melds have convinced the landing party that the bullets are unreal and they pass through harmlessly. Kirk beats Wyatt in a fist fight and then refuses to shoot him, an act of restraint that persuades the Melkotians to open contact.