The major transitions in evolution rely on the formation of stable groups that are composed of previously independent units, and the stability of these groups requires both cooperation and reduced conflict. Conflict over group resources may be common, as suggested by work in both cichlids and humans that has investigated how societies resolve conflict regarding investment in group resources, i.e. public goods. We investigated whether sociable weavers (Philetairus socius) use aggressive behaviors to modulate the cooperative behavior of group mates. We find that the individuals that build the communal thatch of the nest, i.e. the individuals most at risk of exploitation, are the most aggressive individuals. We show that individuals that invest in interior chamber maintenance, possibly a more selfish behavior, suffer relatively more aggression. After suffering aggression individuals significantly increase cooperative construction of the communal nest thatch. We show that cooperative individuals target aggression towards selfish individuals, and the individuals suffering aggression perform cooperative behaviors subsequent to suffering aggression. In addition to other evolutionary mechanisms, these results suggest that aggression, possibly via the pay-to-stay mechanism, is possibly being used to maintain a public good.