In this paper, we employ the unique qualified foreign institutional investors (QFII) scheme in China to investigate whether and how the different religious beliefs in the areas where foreign institutional shareholders from are associated with the corporate social responsibility (CSR) performance of domestic firms. After controlling for other determinants, we find robust evidence that firms with QFII investors from areas with stronger religious beliefs have better CSR performance than those that do not have these beliefs'. This association is more pronounced when a QFII has a shorter holding period, has a relatively large ownership in the firm, or is a more committed investor in China. The above moderating results show that the stock preference may be a channel through which religious QFIIs affect firms’ CSR performance. Our paper contributes to the growing body of literature on CSR and on the effects of investors’ religious beliefs. It also offers useful guidance to listed companies, institutional investors, regulators, and other stakeholders.