Soilborne fungal pathogens cause devastating yield losses and are highly persistent and difficult to control. During the infection process, these organisms must cope with limited availability of iron. Here we show that the bZIP protein HapX functions as a key regulator of iron homeostasis and virulence in the vascular wilt fungus Fusarium oxysporum. Deletion of hapX does not affect iron uptake but causes derepression of genes involved in iron-consuming pathways, leading to impaired growth under iron-depleted conditions. F. oxysporum strains lacking HapX are reduced in their capacity to invade and kill tomato (Solanum lycopersicum) plants and immunodepressed mice. The virulence defect of ΔhapX on tomato plants is exacerbated by coinoculation of roots with a biocontrol strain of Pseudomonas putida, but not with a siderophore-deficient mutant, indicating that HapX contributes to iron competition of F. oxysporum in the tomato rhizosphere. These results establish a conserved role for HapX-mediated iron homeostasis in fungal infection of plants and mammals.