Sustainability is a vital perspective for banks to keep their survival in the long run. While nonperforming loans (NPLs) also impact sustainability, this study aims to examine the moderating impact of NPLs on the adoption of sustainable development goals and the financial performance of the banks. The central hypothesis assumes that even after adopting sustainable development goals, banks cannot get high profits if their NPLs are high. Economic, social, and environmental indicators represent SDG measurement using an ESE index. We are performing panel data analysis through regression and the GMM technique. This study also conducts independent research on economic, social, and environmental indicators. We found that NPL significantly moderates the relationship between the SDGs and the financial performance. This paper has the following vital contribution. Bank that adopts sustainable development goals may have low profits if it has a high nonperforming loan ratio so banks must focus on the customer to whom they offer loans. The novelty of this study is adopting the ESE index for measuring the adoption of SDGs.