First mentioned in Star Trek: The Original Series, a different Federation existed before the creation of the United Federation of Planets. Star Trek writer Gene L. Coon is credited with creating the Federation, and helping to establish Starfleet as a concept. The Federation was first mentioned in Star Trek: The Original Series season 1, episode 23, "A Taste of Armageddon," which features a visiting Federation Ambassador, and has since become a central part of the Star Trek universe and played a role in nearly every Star Trek series.
Several Star Trek projects have revolved around the United Federation of Planets and its establishment. For example, Star Trek: Enterprise leads up to the founding of the Federation, while Star Trek: First Contact depicts humanity's first encounter with the Vulcans. So many disparate elements had to come together for the Federation to form, and its existence exemplifies Gene Roddenberry's utopian vision of the future. However, while this version of the Federation is the most well-known in Star Trek, another Federation actually existed first.
Star Trek's First Federation Predated The United Federation Of Planets
Balok Is The Only Official Representative Of The First Federation Seen On Screen
In Star Trek: The Original Series season 1, episode 10, "The Corbomite Maneuver," Captain James T. Kirk (William Shatner) and his crew encounter Commander Balok and his ship, the Fesarius. Balok says his ship is the flagship of the so-called First Federation, and announces that the Enterprise will be destroyed for trespassing into First Federation space. Kirk decides to bluff Balok and claims that a substance called corbomite will destroy Balok's ship along with the Enterprise. Kirk and his crew eventually meet the real Balok (Clint Howard), who is actually an incredibly intelligent child-like alien who claims he was only testing the Enterprise.