"The City on the Edge of Forever"
Star Trek: The Original Series episode
Episode no.Season 1
Episode 28
Directed byJoseph Pevney
Written byHarlan Ellison
D. C. Fontana (uncredited)
Gene L. Coon (uncredited)
Featured musicFred Steiner (original)
Cinematography byJerry Finnerman
Production code028
Original air dateApril 6, 1967
Guest appearance(s)
Episode chronology
← Previous
"The Alternative Factor"
Next →
"Operation: Annihilate!"
Star Trek: The Original Series (season 1)
List of Star Trek: The Original Series episodes

"The City on the Edge of Forever" is the twenty-eighth and penultimate episode of the first season of the American science fiction television series Star Trek. The episode had several writers contribute to the finished product including: Harlan Ellison, Steven W. Carabatsos, D. C. Fontana, Gene L. Coon and a final re-write by Gene Roddenberry. The episode was directed by Joseph Pevney and first aired on NBC on April 6, 1967.

In the episode, after a heavily medicated Doctor Leonard McCoy (DeForest Kelley) travels back in time and changes history, Captain Kirk (William Shatner) and Spock (Leonard Nimoy) follow him to correct the timeline. In doing so, Kirk falls in love with Edith Keeler (Joan Collins), but realizes that in order to save his future, he must allow her to die.

The episode received widespread critical acclaim and has been frequently stated to be the best episode of the entire franchise, with it fondly received by cast, crew, and critics. Elements such as the tragic ending were highlighted by several reviewers. It won several awards, including the Writers Guild of America Award for Best Episodic Drama on Television and the Hugo Award for Best Dramatic Presentation.

Plot