In the current study, we demonstrate that the MyD88-dependent receptor TLR2 is critical for S. aureus containment in the brain and galea during craniotomy infection. Here, TLR2 is linked to infection.