ESG scores and climate policy uncertainty affect default risk in ESG and non-ESG firms. The study uses various metrics and machine learning models to analyze default risk over 20 years, offering policy insights for risk management in corporations and government.