This study aims to determine the effect of the school environment on the learning outcomes of ninth-grade students in the subject of Islamic Religious Education (IRE) at SMP IT Hafizhan Al-Irsyad Tanjung Morawa, Deli Serdang. The study employed a quantitative approach using an ex post facto research design. The variables examined were the school environment as the independent variable (X) and PAI learning outcomes as the dependent variable (Y). Data were collected through a questionnaire consisting of 22 items and observations of 25 students in the sample, using a saturated sampling technique. The data analysis techniques used were descriptive analysis and simple linear regression. The results of the study indicate that the significance value of 0.632 is greater than 0.05, meaning there is no significant influence of the school environment on student learning outcomes. The regression equation obtained is Y = 89.534 - 0.048X, indicating a negative relationship between the two variables, although the influence is not significant. The calculated t-value of -0.399 is also smaller than the critical t-value of 1.713, so the null hypothesis (H₀) is accepted and the alternative hypothesis (Hₐ) is rejected. Thus, it can be concluded that the school environment does not significantly affect the PAI learning outcomes of ninth-grade students at that school. Abstrak Penelitian ini bertujuan untuk mengetahui pengaruh lingkungan sekolah terhadap hasil belajar siswa kelas IX pada mata pelajaran Pendidikan Agama Islam (PAI) di SMP IT Hafizhan Al-Irsyad Tanjung Morawa, Deli Serdang. Penelitian menggunakan pendekatan kuantitatif dengan jenis penelitian ex post facto. Variabel yang dikaji adalah lingkungan sekolah sebagai variabel bebas (X) dan hasil belajar PAI sebagai variabel terikat (Y). Data dikumpulkan melalui angket sebanyak 22 butir pernyataan dan observasi terhadap 25 siswa yang menjadi sampel, dengan menggunakan teknik sampling jenuh. Teknik analisis data yang digunakan adalah analisis deskriptif dan regresi linier sederhana. Hasil penelitian menunjukkan bahwa nilai signifikansi sebesar 0,632 lebih besar dari 0,05, yang berarti tidak terdapat pengaruh signifikan antara lingkungan sekolah terhadap hasil belajar siswa. Persamaan regresi yang diperoleh yaitu Y = 89,534 - 0,048X, menunjukkan hubungan negatif antara kedua variabel, meskipun pengaruhnya tidak signifikan. Nilai t hitung sebesar -0,399 juga lebih kecil dari t tabel sebesar 1,713, sehingga hipotesis nol (H₀) diterima dan hipotesis alternatif (Hₐ) ditolak. Dengan demikian, dapat disimpulkan bahwa lingkungan sekolah tidak berpengaruh secara signifikan terhadap hasil belajar PAI siswa kelas IX di sekolah tersebut.