We have investigated the role of H-NS, one of the major components of the bacterial nucleoid, in the expression of the virF gene present on the large virulence plasmid of Shigella and enteroinvasive Escherichia coli in response to different environmental conditions. VirF is an AraC-like protein which activates at least two promoters, virB and virG, both repressed by H-NS. Band shift experiments reveal that the affinity of H-NS for the virF and virB promoters is comparable, while the affinity for the virG promoter is higher. Polyacrylamide gel electrophoresis of three DNA fragments containing the virF, the virB and the VirG promoters demonstrates, in agreement with computer predictions, that they have an intrinsically curved structure, confirming the preference of H-NS for bent DNA. In vivo transcriptional analysis of virF mRNA shows that H-NS negatively controls the expression of virF at 30 degrees C. The expression of a virF-lacZ translational fusion in E.coli wild type and in an hns-defective derivative grown at 30 degrees or 37 degrees C and at pH 6.0 or 7.0 indicates that, in the absence of H-NS, virF expression becomes insensitive to temperature and to limited pH changes. Our results strongly suggest that H-NS controls virF expression by binding to the virF promoter and by repressing its expression at low temperature and at low pH.