Wyatt Berry Stapp Earp (March 19, 1848 – January 13, 1929) was a human who lived on Earth during the 19th and 20th centuries. During his life, Earp held a number of positions, most notably a U.S. Marshal in the city of Tombstone, Arizona. While in Tombstone, Earp was involved in the famous gunfight at the O.K. Corral on October 26, 1881.
In 2268, the Melkot recreated Earp and Tombstone to punish Captain James T. Kirk, Mr. Spock, Doctor Leonard McCoy, and Montgomery Scott for trespassing on their planet. Spock figured out that the recreation was not real, and the landing party could not be harmed if they believed they would not be harmed. Spock used a Vulcan mind meld to keep the others from experiencing harm, thus the recreation of Earp and his associates were unable to harm the landing party. Kirk refused to kill the recreation of Earp, and impressed the Melkot, who invited the USS Enterprise crew to visit their planet. (TOS episode: "Spectre of the Gun")
In 2373, while fighting Klingons invading Deep Space 9 in a zero-g environment, Julian Bashir reflected that even he could play Wyatt Earp as the Klingons were too disoriented to present a real threat. (DS9 novel: Vengeance)