Sigma factors are subunits of bacterial RNA polymerase that play an important role in transcription initiation by recognizing promoter elements. E. coli contains seven sigma factors that direct transcription of different genes depending on environmental conditions. Sigma factors function by forming holoenzyme complexes with RNA polymerase core enzyme. Their activity is regulated by anti-sigma factors, which inhibit sigma factors and prevent transcription under certain conditions. During heat shock, sigma factor σ32 directs transcription of heat shock proteins by escaping inhibition of the anti-sigma factor DnaK.