PurposeThis study aims to explore how corporate social responsibility (CSR) dimensions (i.e. economic; legal; ethical; philanthropic) foster employee creativity during the COVID-19 pandemic. Specifically, an attempt is made to investigate the mediating role of affective commitment to explain the above linkage.Design/methodology/approachThe survey data were collected from 167 employees in the emerging market of Saudi Arabia. The data was analysed using PLS-SEM for frequency, reliability, confirmatory factor analyses and structural equation modelling.FindingsThe CSR dimensions, particularly the ethical and philanthropic dimensions, showed both direct and indirect effects on the creativity behaviour of employees during the COVID-19 pandemic. Moreover, affective commitment mediated the relationship between the legal, ethical and philanthropic CSR dimensions and creativity behaviour.Originality/valueThis study enriches previous CSR empirical research and adds to current literature focused on the determinants of CSR dimensions' effectiveness; particularly, the research is set in a challenging scenario characterized by the pandemic. So, this paper extends previous studies by investigating under which key conditions CSR dimensions are most effective, in particular in two main directions. First, it contributes to the CSR literature by determining how various CSR dimensions influence creativity behaviour during a pandemic. Pandemics are events that occur regularly, and the COVID-19 pandemic, in particular, offers the opportunity to explore its effects on employees' behaviours in the current context. Second, the study's mediation findings contribute to new empirical evidence which suggests that affective commitment has a positive effect on the CSR dimensions of employee creativity behaviour during a pandemic in an emerging market.