Serum NLRP3, MMP‐9 and IFN‐γ levels had high diagnostic efficacy in patients with postoperative intracranial infection and hydrocephalus, among which serum NLRP3 level played a major role. The gene discussed is MMP9; the disease is Hydrocephalus.