Objective To explore the risk factors for early epilepsy after cranioplasty.Methods The clinical data of 88 patients with skull defects admitted from January 2015 to December 2021 were retrospectively analyzed.Cranioplasty was conducted using shaped titanium mesh,and epileptic seizures that occurred within 7 days after the operation were diagnosed as early postoperative epilepsy.A multivariate logistic regression model was adopted to analyze the risk factors for early postoperative epilepsy.Results Of the 88 cases,12 cases had epileptic seizures within 7 days after cranioplasty;the incidence of early postoperative epilepsy was 13.64%.Multivariate logistic regression analysis showed that postoperative hemorrhage or effusion in the operation area was an independent risk factor for early epilepsy after cranioplasty (OR=8.394;95%CI 1.421~49.583;P=0.019).Conclusions Early postoperative epilepsy is a common complication after cranioplasty.Taking effective measures to prevent hemorrhage or effusion in the operation area is helpful to reduce the incidence of early epilepsy after cranioplasty.