Legionella pneumophila is an intracellular bacterium that causes an acute form of pneumonia called Legionnaires' disease. After infection of human macrophages, the Legionella-containing phagosome (LCP) avoids fusion with the lysosome allowing intracellular replication of the bacterium. In macrophages derived from most mouse strains, the LCP is delivered to the lysosome resulting in Legionella degradation and restricted bacterial growth. Mouse macrophages lacking the NLR protein Ipaf or its downstream effector caspase-1 are permissive to intracellular Legionella replication. However, the mechanism by which Ipaf restricts Legionella replication is not well understood. Here we demonstrate that the presence of flagellin and a competent type IV secretion system are critical for Legionella to activate caspase-1 in macrophages. Activation of caspase-1 in response to Legionella infection also required host Ipaf, but not TLR5. In the absence of Ipaf or caspase-1 activation, the LCP acquired endoplasmic reticulum-derived vesicles, avoided fusion with the lysosome, and allowed Legionella replication. Accordingly a Legionella mutant lacking flagellin did not activate caspase-1, avoided degradation, and replicated in wild-type macrophages. The regulation of phagosome maturation by Ipaf occurred within 2 h after infection and was independent of macrophage cell death. In vivo studies confirmed that flagellin and Ipaf play an important role in the control of Legionella clearance. These results reveal that Ipaf restricts Legionella replication through the regulation of phagosome maturation, providing a novel function for NLR proteins in host defense against an intracellular bacterium.