The tragedy of the commons predicts social collapse when public goods are jointly exploited by individuals attempting to maximize their fitness at the expense of other social group members. However, animal societies have evolved many times despite this vulnerability to exploitation by selfish individuals. Kin selection offers a solution to this social dilemma, but in large social groups mean relatedness is often low. Sociable weavers (Philetairus socius) live in large colonies that share the benefits of a massive communal nest, which requires individual investment for construction and maintenance. Here, we show that despite low mean kinship within colonies, relatives are spatially and socially clustered and that nest-building males have higher local relatedness to other colony members than do non-building males. Alternative hypotheses received little support, so we conclude that the benefits of the public good are shared with kin and that cooperative investment is, despite the large size and low relatedness of these communities, kin directed.