PurposeThis study aims to analyze the relationship between environmental, social and governance (ESG) ratings and corporate bond credit spreads within the oil and gas (O&G) industry. Given the sector’s significant environmental impact and the current energy transition, it is crucial to understand how ESG disclosure affects financial performance, particularly in terms of debt market dynamics. This research aims to provide empirical evidence on whether ESG efforts by O&G companies influence their cost of borrowing.Design/methodology/approachThis study employs a quantitative approach using secondary data from Refinitiv for the period 2018–2022. To address potential endogeneity issues, we utilize two-stage-least-squares regressions. The analysis focuses on corporate bond spreads as the dependent variable and ESG as the key independent variable.FindingsOur findings indicate a negative association between ESG disclosure and corporate bond spreads. Specifically, companies with higher ESG ratings tend to experience lower credit spreads, suggesting that improved ESG practices may lead to reduced borrowing costs. Additionally, the results show that non-state-owned companies (SOC) benefit more from ESG in terms of financial performance compared to state-owned counterparts.Research limitations/implicationsThe study is limited by its reliance on secondary data from Refinitiv, which may not capture all nuances of ESG practices and financial performance. Additionally, the analysis is confined to the O&G industry, potentially limiting the generalizability of the findings to other sectors. Future research could expand the scope to include other industries and incorporate primary data to provide a more comprehensive understanding of the ESG–financial performance relationship.Practical implicationsThe study’s findings suggest that O&G companies can potentially reduce their borrowing costs by improving their ESG ratings. This insight is valuable for corporate managers and investors, as it highlights the financial benefits of sustainable practices. Additionally, policymakers could use these findings to encourage better ESG disclosure and practices within the industry, ultimately promoting a more sustainable energy sector.Social implicationsBy demonstrating the financial advantages of ESG disclosure, this study underscores the broader social benefits of sustainable business practices. Improved ESG ratings not only contribute to environmental and social well-being but also enhance a company’s financial performance. This dual benefit can motivate more companies to adopt sustainable practices, leading to positive societal impacts such as reduced environmental damage and improved community relations.Originality/valueThis study contributes to the existing literature by providing empirical evidence on the relationship between ESG ratings and corporate bond credit spreads specifically within the O&G industry. By highlighting the differential impact of ESG disclosure on state-owned versus non-SOC, the research offers unique insights that can inform corporate strategies in the context of sustainability and financial performance.