Teams
In Team Fortress 2 Classic, two teams compete against each other: RED (Reliable Excavation Demolition) and BLU (Builder's League United). These teams make up the two teams in regular maps. There are also two more teams, GRN (Global Radio Network) and YLW (Yard Logistics Workers), which a player can join if they are playing in a Four-Team map.
Backstory
TODO, GRN and YLW play a part in all the broadcast towers and freight yards RED and BLU have been fighting over, respectively. Still, they've also got shady corporate interests that they're willing to hire mercenaries to protect.
In-game
During a game, players work with their team to fulfill the objectives of the game mode they're playing. In standard attack-defense gamemodes, RED is the defending team and BLU is the offending team.
Some classes have weapons that are designed to interact with a player's team, for example, the Medic's Medi Gun is used to heal teammates and the Civilian's Umbrella, once ready, grants a teammate mini-crits.
While the objective of most games is to help your team, certain players will ignore the objective or combat, and play as Friendlies (A pseudo-support class to both sides.)
Team Selection
TODO
Classes
A team can consist of a maximum of 32 players on Two-Team, and 16 players on Four-Team, each being one of nine main Classes. Each class is designed to be functionally different than the others and has weapons, to fulfill a particular role within a team. All of the main nine classes are split into 3 sub-groups: Offense, Defense and Support.
Spectator
In Spectator Mode, a player can watch the match through participating players' eyes and fly around freely without actually playing the game. While a player is dead, they also spectate their own team's players.