In this project, we analyse the key drivers behind ESG ratings using machine learning and explainable AI (XAI) techniques, leading to a deeper understanding of how companies are affected by ESG regulation. The insights gained from this analysis enable us to investigate the effects on financial stability through a simulation study based on agent-based models and realistic scenarios derived from empirical data.