"The Cage" is the first pilot episode of the Star Trek: The Original Series science fiction series. It was completed in early 1965, but not broadcast on television in its complete form until late 1988. The episode was written by Gene Roddenberry and directed by Robert Butler. It was rejected by NBC in February 1965, and the network ordered another pilot episode, which became "Where No Man Has Gone Before". Much original footage from "The Cage" was later incorporated into the first season two-parter, "The Menagerie".