Objective To investigate the risk factors of intracranial infection in patients with traumatic cerebrospinal fluid fistula.Methods A total of 418 patients with traumatic cerebrospinal fluid fistula admitted in Chongming Branch of Shanghai Tenth Hospital from January 2013 to December 2022 were enrolled.The risk factors of intracranial infection complicating cerebrospinal fluid fistula were analyzed with multivariate Logistic regression.Logistic regression was used to construct the prediction model of intracranial infection.Results Among 418 patients,the intracranial infection occurred in 18 cases(4.31%).There were significant differences in the duration of CSF fistula and the use of broad-spectrum antibiotics between the infected group and non-infected group(P<0.05).Multivariate Logistic regression analysis suggested that CSF fistula duration≥14 d was an independent risk factor for intracranial infection(P<0.05).A prediction model based on the risk factors was established,the area under ROC curve(AUC)of the prediction model was 0.704,and the prediction effect was good.Conclusion CSF fistula duration ≥14 d is an independent risk factor for intracranial infection in patients with traumatic CSF fistula.