In 1997, ' Deep Space Nine' introduced Section 31, an amoral secret intelligence agency who does the dirty work so that Starfleet can maintain their illusion of righteousness. As the 'Star Trek' universe expanded, the storytellers' appetites for more complex stories and more formidable antagonists gradually eroded the idea of Starfleet as an institution worth believing in.