 This is the second Star Trek franchise episode based upon Barry  Longyears 1980 novella "Enemy Mine" (which was also a 1985 movie of  the same name). The other episode was ST The Next Generations "The  Enemy" (3rd season).