Purpose -This paper aims to explore the relationship between corporate social responsibility (CSR) disclosures and earnings quality proxied by earnings accruals. Specifically, we examine whether CSR disclosures are context-specific, that is, whether companies dominated by powerful stakeholders are obliged to behave in a responsible manner to constrain earnings management, thereby reporting higher-quality earnings to investors. Design/methodology/approach -This paper explores the relationship between CSR disclosures and earnings quality proxied by earnings accruals. Specifically, we examine whether CSR disclosures are context-specific, that is, whether companies dominated by powerful stakeholders are obliged to behave in a responsible manner to constrain earnings management, thereby reporting higher-quality earnings to investors. Findings -Results show that managers in an emerging economy manage earnings when they provide more CSR disclosures. Such earnings management is achieved through income increasing discretionary accruals. Furthermore, companies from export-oriented industries dominated by powerful stakeholders (international buyers) disclosing more CSR activities, provide transparent financial reports through constraining earnings management. Originality/value -The findings of this study are significant for both investors and policymakers. Investors should not take for granted that firms engage in CSR activities, behave ethically and provide transparent financial reports. As we document that firms might manipulate earnings through discretionary accruals and provide less transparent financial reports to shareholders, the credibility of firms' CSR policies should be assessed with caution. Policies directing at promoting socially responsible practices instead of motivating the desired behaviour, may provide managers with additional incentives to utilise CSR for opportunistic behaviour. Thus, policymakers need to be cautious about this opportunistic behaviour and enhance monitoring to enforce social compliance. Possibly, some guidelines can be introduced to confirm that CSR disclosures are based on actual practice and not just a "green wash" statement to deceive stakeholders.