Star Trek: Season 1, Episode 12
The Enterprise crew must work with Klingons to escape from a pocket universe.