One of the most commonly debated concerns regarding foreign direct investment inflows is the associated environmental adversities that accompany the influx of foreign funds. As a result, assessing the environmental impacts of foreign direct investment inflows is necessary for achieving environmentally friendly economic growth in the contemporary era. Accordingly, the global economies including the members of the Group of Twenty (G-20) should focus on attracting clean foreign direct investments. Against this backdrop, controlling for energy consumption and urbanization, this extant study scrutinizes the effects of foreign direct investment inflows on the carbon dioxide emission figures of selected G-20 countries between 1992 and 2018. The econometric analysis conducted in this paper involves recently developed methods that are efficient in handling cross-sectionally dependent heterogeneous panel data sets. Besides, the analysis is also conducted for sub-panels of high-, upper-middle-, and lower-middle-income G-20 countries to evaluate the possible heterogeneous environmental effects across the G-20countries belonging to different income levels. Overall, the results highlight that higher foreign direct investmentinflows surge carbon dioxide emissions whereby the pollution haven hypothesis is evidenced to hold for the G-20 nations of concern. Similarly, both at the aggregated and disaggregated levels, greater consumption of energy is witnessed to boost carbon dioxide emissions in the long run. Moreover, urbanization is found to trigger carbon dioxide emissions for the G-20 nations overall and the lower-middle-income G-20 nations. Further, the causality analysis reveals that carbon dioxide emissions have bidirectional causal relationships with foreign direct investment inflows, energy consumption, and urbanization. In line with these major findings, this study recommends thatthe governments of the G-20 countries inhibit inflows of dirty foreign direct investments, reduce fossil fuel dependency, and adopt green urbanization policies for achieving higher economic growth without marginalizing environmental well-being.