In the human enteropathogen Shigella transcription of virF, the primary regulator of the invasion functions, is strictly temperature-dependent and is antagonistically mediated by H-NS and FIS, which bind to specific sites on the virF promoter. Here we report on the relevance of DNA geometry to the thermoregulation of virF and demonstrate that the virF promoter hosts a major DNA bend halfway between two H-NS sites. The bent region has been mutagenized in vitro to mimic temperature-induced changes of DNA curvature. Functional analysis of curvature mutants and of promoter constructs in which the two H-NS sites are phased-out by a half-helix turn reveals that modifying the spatial relationships between these sites severely affects the interaction of H-NS with the virF promoter, as well as its in vivo and in vitro temperature-dependent activity. The role of promoter curvature as thermosensor is also compatible with the present observation that, with increasing temperature, the virF bending centre moves downstream at a rate having its maximum around the transition temperature, abruptly unmasking a binding site for the transcriptional activator FIS.