Cholesterol 25-hydroxylase (CH25H) is an interferon-stimulated gene that converts cholesterol to the oxysterol 25-hydroxycholesterol (25HC). Circulating 25HC modulates essential immunological processes including antiviral immunity, inflammasome activation and antibody class switching; and dysregulation of CH25H may contribute to chronic inflammatory disease and cancer. Although 25HC is a potent regulator of cholesterol storage, uptake, efflux and biosynthesis, how these metabolic activities reprogram the immunological state of target cells remains poorly understood. Here, we used recently designed toxin-based biosensors that discriminate between distinct pools of plasma membrane cholesterol to elucidate how 25HC prevents Listeria monocytogenes from traversing the plasma membrane of infected host cells. The 25HC-mediated activation of acyl-CoA:cholesterol acyltransferase (ACAT) triggered rapid internalization of a biochemically defined fraction of cholesterol, termed 'accessible' cholesterol, from the plasma membrane while having little effect on cholesterol in complexes with sphingomyelin. We show that evolutionarily distinct bacterial species, L. monocytogenes and Shigella flexneri, exploit the accessible pool of cholesterol for infection and that acute mobilization of this pool by oxysterols confers immunity to these pathogens. The significance of this signal-mediated membrane remodelling pathway probably extends beyond host defence systems, as several other biologically active oxysterols also mobilize accessible cholesterol through an ACAT-dependent mechanism.