PurposeThis study examines the impact of corporate social responsibility (CSR) on innovation, considering the role of the three dimensions of intellectual capital (human capital, structural capital and relational capital). Specifically, the analysis explores the direct effect of CSR and intellectual capital on innovation, the effect of CSR on intellectual capital, and the mediating effect of intellectual capital on the relationship between CSR and innovation.Design/methodology/approachData were collected from a sample of 101 Tunisian firms operating in various industries. The conceptual model of direct and indirect effects was tested with partial least squares structural equation modelling (PLS-SEM) using SmartPLS 4 software.FindingsCSR is positively related to innovation, as well as all dimensions of intellectual capital. Structural capital is the only dimension of intellectual capital that has a significant effect on innovation. CSR affects innovation through its impact on structural capital.Originality/valueMost studies have examined the direct effect of CSR on innovation in firms in developed countries. In contrast, this research sheds light on the mediating role of intellectual capital in this relationship, underlining the specific role of human capital, relational capital and structural capital. In addition, the study focuses on a developing country, which thus differentiates it from previous studies.