Background and aim Educational failure among secondary school students in Erbil City is influenced by a complex interplay of factors. This study is crucial as it aims to conduct an in-depth investigation into the various factors contributing to educational failure among secondary school students in Erbil City. Specifically, the study seeks to explore how students' attitudes toward school and learning influence their academic performance, including their levels of engagement, motivation, and perceptions of school. Additionally, it aims to examine the impact of teacher-related factors, such as teaching quality, classroom management, and teacher-student relationships, on students' academic success. Furthermore, the study will assess the role of school resources, including the availability of educational materials and facilities, and the influence of extracurricular activities on students' overall academic outcomes. Methods This cross-sectional study was conducted from March 15, 2023, to June 5, 2024, in nine secondary high schools in Erbil City. A total of 280 students participated in the study, using purposive sampling. The questionnaire comprised demographic information and a self-structured questionnaire with 30 items assessing attitude factors, school teacher factors, and school potential and extracurricular activity factors. Statistical analysis was performed using IBMSPSSStatistics for Windows, Version 28 (Released 2021; IBM Corp., Armonk, New York, United States), with frequency and percentage used for qualitative variables and mean and standard deviation for quantitative variables. Results A total of 280 students participated in the study. The overall mean scores were 1.57 ± 0.37 for school potential and extracurricular activity factors, 1.42 ± 0.43 for attitude factors, and 1.18 ± 0.35 for school teacher factors, indicating that school potential and extracurricular activity factors had the most significant impact on academic performance. Among these, support for students with special needs (262 (93.6%)), strict internal school rules (250 (89.3%)), and availability of career counseling services (239 (85.4%)) were reported as major factors. Attitude factors such as attending school being a pleasure (224 (80.0%)) and seeking assistance from teachers (217 (77.5%)) were significant, while school teacher factors had a lesser impact, with maintaining order in classrooms (252 (90.0%)) and marking absent students' names (262 (93.6%)) being reported as minor factors. Conclusions The study showed that school potential and extracurricular activities were the main causes of educational failure, followed by attitude factors. School teacher factors had the least impact. Policymakers and healthcare providers should prioritize targeted interventions to improve school infrastructure, support students with special needs, and enhance career counseling services. Furthermore, efforts should be made to promote positive attitudes towardschool and learning and to bolster teacher support and training to better address educational challenges.