This paper empirically investigates the effect of managerial competence on investor attention, using A-share listed companies from 2007-2021 as the research object. The study finds that managerial competence has a positive enhancing effect on investor attention. The moderating mechanism suggests that the degree of corporate diversification has a dampening effect on the enhancing effect of managerial competence on investor attention. The above findings still hold after applying robustness tests in various ways. Heterogeneity analysis shows that the promotion of managerial competencies on investor attention is more pronounced in firms with a higher degree of digitalisation under non-state enterprises. The study has implications for attracting investor attention and enhancing corporate competitiveness in the new era.