Density dependence is a common feature in the dynamics of animal populations. Availability of food resources critical to immunity is likely to be one of the mechanisms mediating the effect of population density on individual fitness. The ability to mount an immune response to an antigen is also affected by levels of immunosuppressive hormones associated with reproduction or mediating the response to ecological and social stress. We assessed variation in condition and intensity of humoral immune response to a T-cell-dependent antigen in bank voles (Clethrionomys glareolus) by experimentally altering population density before immunisation. Consistent with our prediction, males had lower humoral immunocompetence in the breeding than in the non-breeding season. Contrary to our expectation, males did not show enhanced immunocompetence and females showed depressed humoral immune response under experimentally lowered population density. Variation of immune response in relation to population density depended on sex, with females but not males showing lower immune response under experimentally reduced density. We conclude that humoral immunity of bank voles was affected by reproduction and social environment rather than by population density.