Far Beyond the Stars (Star Trek: Deep Space Nine, Season 6, Episode 13)
Captain Benjamin Sisko is considering leaving Starfleet when he's confronted by visions of himself as a twentieth-century writer, named Benny Russell. In his vision, Russell confronts racism as a black science fiction writer in New York City in the 1950s. The entire crew plays different roles in the vision, including Kira Nerys as a female writer hiding behind a pen name to avoid sexism and Odo as the racist publisher of the magazine where Benny Russell works. This episode plays with three of Star Trek's favorite themes: Time travel, alternate universes, and putting the whole cast in costumes.
Watch Star Trek: Deep Space Nine on CBS All-Access.