The cytokine TNF is a critical mediator of immune and inflammatory responses. The TNF gene is an immediate early gene, rapidly transcribed in a variety of cell types following exposure to a broad range of pathogens and signals of inflammation and stress. Regulation of TNF gene expression at the transcriptional level is cell type- and stimulus-specific, involving the recruitment of distinct sets of transcription factors to a compact and modular promoter region. In this review, we describe our current understanding of the mechanisms through which TNF transcription is specifically activated by a variety of extracellular stimuli in multiple cell types, including T cells, B cells, macrophages, mast cells, dendritic cells, and fibroblasts. We discuss the role of nuclear factor of activated T cells and other transcription factors and coactivators in enhanceosome formation, as well as the contradictory evidence for a role for nuclear factor κB as a classical activator of the TNF gene. We describe the impact of evolutionarily conserved cis-regulatory DNA motifs in the TNF locus upon TNF gene transcription, in contrast to the neutral effect of single nucleotide polymorphisms. We also assess the regulatory role of chromatin organization, epigenetic modifications, and long-range chromosomal interactions at the TNF locus.