As the negative repercussions of environmental devastation, such as global warming and climate change, become more apparent, environmental consciousness is growing across the world, forcing nations to take steps to mitigate the damage. Thus, the current study assesses the effect of green investments, institutional quality, and political stability on air quality in the G-20 countries for the period 2004-2020. The stationarity of the variables was examined with the Pesaran (J Appl Econ 22:265-312, 2007) CADF, the long-term relationship between the variables by Westerlund (Oxf Bull Econ Stat 69(6):709-748, 2007), the long-run relationship coefficients with the MMQR method proposed by Machado and Silva (Econ 213(1):145-173, 2019), and the causality relationship between the variables by Dumitrescu and Hurlin (Econ Model 29(4):1450-1460, 2012) panel causality. The study findings revealed that green finance investments, institutional quality and political stability increased the air quality, while total output and energy consumption decreased air quality. The panel causality reveals a unidirectional causality from green finance investments, total output, energy consumption and political stability to air quality, and a bidirectional causality between institutional quality and air quality. According to these findings, it has been found that in the long term, green finance investments, total output, energy consumption, political stability, and institutional quality affect air quality. Based on these results, policies implications were proposed.