Much research has shown that experiences of discrimination are negatively related to mental health. In this study, a national probability survey of whites and African Americans at midlife is used to examine whether attendance at religious services and religious comfort seeking protect people from the effects of discrimination on mental health, and if the protective power of religion varies by race. Results show that reports of discrimination are related to greater negative affect and less positive affect, but only attendance at religious services moderates this relationship, and then only for African Americans' negative affect. The historical involvement of African-American religious bodies in combating discrimination may help to explain the specificity of these moderating effects.