Abstract-This study investigates the impact of foreign direct investment (FDI), economic growth and energy consumption on carbon emissions in ten selected countries which the total carbon emissions in the world), including five developing countries (China, India, Brazil, Mexico and Indonesia) and five developed countries (European Union, the United States, Canada, the United Kingdom and Japan). This paper employs a panel quantile regression model that takes unobserved individual heterogeneity and distributional heterogeneity into consideration. Moreover, to avoid an omitted variable bias, certain related control variables are included in our model. Our empirical results show that the effect of the independent variables on carbon emissions is heterogeneous across quantiles. Specifically, the effect of FDI on carbon emissions is positive and significant for developed countries. Energy consumption increases carbon emissions, with the strongest effects occurring at middle quantiles for developed countries. Among the high-emissions countries, greater economic growth to reduce emissions. The results of the study also support the validity of the halo effect hypothesis in higher-emissions countries. However, we find little evidence in support of an inverted U-shaped curve in the developing countries. In addition, a higher level of trade openness can mitigate the increase in carbon emissions, especially in low-and high-emissions nations. Finally, the results of the study also provide policymakers with important policy recommendations.