"The Perfect Mate" is the 21st episode of the fifth season of the American science fiction television series Star Trek: The Next Generation, the 121st overall. The episode was credited to Gary Percante and Michael Piller from a story by Percante and René Echevarria. Percante was a pseudonym of Reuben Leder, which was used by the writer in protest against re-writes. Four endings were written, with two filmed. "The Perfect Mate" was directed by Cliff Bole.