This paper examines the moral community thesis in the secular context of China. Using multilevel logistic regression, we test (1) whether both individual-(measured by affiliation with Islam, Buddhism and Christianity) and aggregate-level religiosity (measured by the number of mosques, Buddhist temples, and churches per 10,000 people in province) are inversely related to law and rule violations at the individual level and (2) whether province-level religiosity enhances the inverse relationship between individual religiosity and deviant behaviors. Results from the 2010 China General Social Survey and the Spatial Explorer of Religions provide some support for the moral community proposition that contextual religiosity affects deviance at the individual level. Specifically, we find provincial as well as individual level of Islam to be inversely related with the violation of the law and rules. However, we find that neither the provincial level of Christianity and Buddhism nor cross-level interaction is related to deviance. The only exception, cross-level interaction involving the individual and provincial level of Islam, is in the opposite direction (i.e., positive, not negative). The implications of our findings are discussed.