PurposeThis study aims to explore the role of corporate social responsibility (CSR) on the likelihood of financial distress for a sample of 139 Pakistan Stock Exchange (PSX) listed firms throughout 2008–2019.Design/methodology/approachThe dynamic generalized method of moments (GMM) estimator is used to examine the impact of CSR on financial distress. The investment in CSR is measured through a multidimensional financial approach which comprises the sum of the contribution made by the company in the form of charitable donation, employees’ welfare and research and development, while the Altman Z-score is used as an indicator of financial distress. The higher the Z-score, the lower will be the probability of financial distress.FindingsThe authors find a significant positive impact of CSR on financial distress in GMM model. This finding is consistent with the shareholder view and over-investment hypothesis of CSR as management makes an investment in CSR to get personal benefits, which resultantly leads the firm toward financial distress state. Further, this positive relationship remains present for firms having strong involvement in foreign business through exports.Research limitations/implicationsLike other studies, the present study is not free from limitations. First, financial firms are skipped from the sample, although literature witnesses a lot of studies highlight the financial firms’ commitment to achieving CSR goals. Second, financial distress occurs in different stages, and this study fails to establish a linkage between CSR engagement at different stages of financial distress. In the future, researchers can make valuable addition by covering these missing links in present studies.Practical implicationsFindings suggest several practical implications. For policymakers, they should encourage firms to adopt more socially responsible behavior as it not only prevents them from distress but also comes with better investment behavior, minimize bankruptcies and make economies more strong and stable. Second, results suggest corporate managers emphasize socially responsible behavior as its benefits are beyond the “societal benefits” as it lessens financial distress through lower cost of debt, lesser financial constraints and reduced cost of information asymmetry, and it minimizes the cost of capital. Lastly, investors make risk premium assessments related to future earnings by determining the likelihood of financial distress in the future.Originality/valueThe study extends the body of existing literature on CSR and the likelihood of financial distress in Pakistan, which is according to the best knowledge of the authors, not yet studied before. The results suggest that policymakers may pay special attention to the quality of CSR while predicting corporate financial distress.