The Federation and the Terran Empire know of each other's existence. In Star Trek's Mirror Universe, instead of the United Federation of Planets, humanity formed the Terran Empire and successfully ...
And few are as iconic as the mirror universe, where the United Federation of Planets is swapped for the ruthless Terran Empire, Spock sports an evil goatee, and backstabbing is just another Tuesday.