We found that the C3 deposition protected host cells against infection by restricting intracellular staphylococcal growth in an ATG16L1-dependent manner. Here, ATG16L1 is linked to infection.