Team Fortress 2 is available for free through Steam. Install the Steam client, search for the game, and add it to your library.