This study analyses the impact of corporate social performance (CSP), proxied by the Environmental, Social and Governance (ESG) Index and its pillars and dimensions, on the environmentally adjusted efficiency (EAE) of 239 listed companies, over the period 2016–2021, in the global energy sector. The EAE index, estimated via data envelopment analysis (DEA), assesses the efficiency of companies by considering economic aspects alongside CO2 and energy consumption reduction targets. Our results support the hypothesis that only above a certain level of performance, do CSP practices positively influence EAE, so there is a non‐linear U‐shaped association between the overall ESG score and EAE. The same holds for the social and governance pillars, and the human rights and management subspecific dimensions, on EAE. Other ESG attributes show a positive linear relationship with EAE, namely the environmental pillar, the environmental innovation dimension and the shareholder dimension. Our paper has significant implications for companies, policy makers and researchers insofar as it estimates EAE and indicates which CSP practices should be invested in over the long term to have a positive effect on it.