In studying fires and other natural disasters, air quality is often used to assess their severity. This study explores the relationship between air quality and solar energy production, focusing on how air pollutants affect solar output. We analyze four air quality indicators—ozone (O₃), nitrogen dioxide (NO₂), carbon monoxide (CO), and sulfur dioxide (SO₂)—and their effects on photovoltaic performance using data analysis and geographic information systems. This research highlights the importance of understanding this connection to improve solar panel placement and efficiency. Hypothesis testing confirms a negative correlation between poor air quality and solar energy production.