Here we show that treatment with IgM‐IVIg enhanced the clearance of bacteria and reduced infection‐associated pathology in the lung of animals after experimental stroke. Here, CD40LG is linked to infection.