The influence of social factors on the modulation of male testosterone levels has been demonstrated among several vertebrate species. In addition to sexual activity, parental care and reproductive competition affect testosterone secretion. We examined variations in testosterone levels among male black howlers (Alouatta pigra) in various social contexts. Fecal samples were collected from nine males living in five different groups in the Mexican state of Campeche. The potential for intragroup and extragroup competition varied among the groups. The number of resident males living in the groups was the only variable that significantly explained variations in testosterone levels. Males living in unimale groups had higher testosterone levels; the highest testosterone levels were recorded for males that had experienced a shift from multimale to unimale group compositions. In this species, the probability of being challenged by extragroup males and evicted from the group during immigration events increases when males live in unimale groups. Therefore, our results suggest that male black howlers respond to competition for group membership by increasing their testosterone levels. In this context, testosterone secretion represents an anticipatory response to reproductive conflicts. Therefore, although males living in unimale groups have exclusive access to females, they face higher physiological costs associated with sustaining high testosterone levels for extended time periods.