Objective To explore the risk factors of depression and anxiety in adult patients with epilepsy and their relationship with quality of life.Methods From May 2022 to January 2023,patients diagnosed with epilepsy(aged≥18 years)in the department of neurology of our hospital were collected.General demographic data and disease-related information were recorded.Quality of life,depression and anxiety scales were measured in all patients.SPSS26.0 software was used for multiple linear regression analysis,multiple ordered Logistic regression analysis,rank sum test,Pearson correlation analysis,etc.Results Among the 111 patients,49.5%had depression and 43.2%had anxiety.Depression score and anxiety score were correlated with attack type,attack frequency,quality of life and right temporal lobe,and there was a significant negative correlation between life quality score and anxiety and depression score(P<0.01).Seizure frequency,seizure type and right temporal lobe were common risk factors for depression and anxiety in patients with epilepsy(P<0.05).Conclusion Epileptic depression and anxiety were affected by seizure frequency and seizure type,and this bad mood further affected the quality of life of patients.No clear link has been found between the lateralization of seizures and the presence of depression and anxiety states,and further research is needed.