Daniel B. Cooney
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Daniel B. Cooney has a total of 30 co-authors. Here are the top co-authors by number of shared publications:
Chenning Xu
Department of Mathematics and Department of Computing and Mathematical Sciences, California Institute of Technology, Pasadena, USA
2 shared publications- Dylan H. Morris
Department of Ecology and Evolutionary Biology, University of California Los Angeles, Los Angeles, CA, USA
2 shared publications Konstantinos Alexiou
Department of Mathematics, University of St. Andrews, Scotland, UK
2 shared publicationsPawel Romanczuk
Affiliations Institute for Theoretical Biology, Department of Biology, Humboldt-Universität zu Berlin, Berlin, Germany, Bernstein Center for Computational Neuroscience Berlin, Berlin, Germany, Science of Intelligence, Research Cluster of Excellence, Berlin, Germany
2 shared publicationsSimon A. Levin
Department of Ecology and Evolutionary Biology, Princeton University, Princeton, USA
2 shared publications- Simon Asher Levin
Department of Ecology and Evolutionary Biology, Princeton University, Princeton, NJ 08544, USA
2 shared publications
Latest Publications
- Open Access
- 3 September 2026
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 88 (10) , 173
Pattern Formation in a Spatial Public Goods Dilemma due to Diffusive or Directed Motion
The costly provision of public goods serves as a model problem for the evolution of cooperative behavior, presenting a social dilemma between the collective benefits of shared resources and the individual incentive to free-ride in resource production. The spatial structure of populations can also impact cooperation over public goods, as diffusion of public goods and intentional motion of individuals towards regions with greater resources can interact with population and public goods dynamics to produce heterogeneous patterns in the spatial distribution of strategies and resources. In this paper, we build off a model introduced by Young and Belmonte for the reaction dynamics of interacting individuals and an explicit public good, deriving a system of PDEs that describes the spatial profiles of strategies and the public good in the presence of both diffusive motion of individuals and resources and chemotaxis-like directed motion of individuals in response to gradients in the concentration of public goods. Through linear stability analysis, we show that spatial patterns in strategic and public goods profiles can emerge due to either Turing instability with high defector diffusivity or a directed-motion instability through strong sensitivity of cooperators towards increasing resource concentration. We further explore the emergent spatial patterns with a mix of weakly nonlinear stability analysis and numerical simulation, showing that, for a wide range of reaction parameters, diffusion-driven instability appears to increase cooperation and public goods across the spatial domain, while directed motion of cooperators towards public goods tends to decrease cooperation and environmental quality across the environment.
- 3 September 2026
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 88 (10) , 173
Open AccessPattern Formation in a Spatial Public Goods Dilemma due to Diffusive or Directed Motion
The costly provision of public goods serves as a model problem for the evolution of cooperative behavior, presenting a social dilemma between the collective benefits of shared resources and the individual incentive to free-ride in resource production. The spatial structure of populations can also impact cooperation over public goods, as diffusion of public goods and intentional motion of individuals towards regions with greater resources can interact with population and public goods dynamics to produce heterogeneous patterns in the spatial distribution of strategies and resources. In this paper, we build off a model introduced by Young and Belmonte for the reaction dynamics of interacting individuals and an explicit public good, deriving a system of PDEs that describes the spatial profiles of strategies and the public good in the presence of both diffusive motion of individuals and resources and chemotaxis-like directed motion of individuals in response to gradients in the concentration of public goods. Through linear stability analysis, we show that spatial patterns in strategic and public goods profiles can emerge due to either Turing instability with high defector diffusivity or a directed-motion instability through strong sensitivity of cooperators towards increasing resource concentration. We further explore the emergent spatial patterns with a mix of weakly nonlinear stability analysis and numerical simulation, showing that, for a wide range of reaction parameters, diffusion-driven instability appears to increase cooperation and public goods across the spatial domain, while directed motion of cooperators towards public goods tends to decrease cooperation and environmental quality across the environment.
- 30 May 2026
- Published by Elsevier in Chemical Engineering Science
- Vol. 335
Operating regimes, scaling laws, and optimization of selectivity in plasma-liquid reactions
- 30 May 2026
- Published by Elsevier in Chemical Engineering Science
- Vol. 335
Operating regimes, scaling laws, and optimization of selectivity in plasma-liquid reactions
- Open Access
- 25 February 2026
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 88 (4) , 46
Pattern Formation in Agent-Based and PDE Models for Evolutionary Games with Payoff-Driven Motion
Spatial structure can play an important role in the evolution of cooperative behavior and the achievement of collective success of a population. In this paper, we explore the role of random and directed motion on spatial pattern formation and the payoff achieved by populations in both stochastic and deterministic models of spatial populations who engage in social interactions following a hawk-dove game. For the case of purely diffusive motion, both a stochastic spatial model and a partial differential equation model show that Turing patterns can emerge when hawks have a greater movement rate than doves, and in both models hawks and doves see an increase in population size and average payoff as hawk mobility increases. For the case of the payoff-driven motion, the stochastic model shows an overall decrease in population size and average payoff, but the PDE model displays more subtle behavior in this setting and will depend on the relative diffusivities of the two strategies. The PDE model also displays a biologically infeasible short-wave instability in the case of payoff-driven motion and equal diffusivities, indicating that we need to be careful about the mathematical properties of PDE models with payoff-driven directed motion and indicating potential use for nonlocal PDE models for spatial patterns in evolutionary games with directed motion.
- 25 February 2026
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 88 (4) , 46
Open AccessPattern Formation in Agent-Based and PDE Models for Evolutionary Games with Payoff-Driven Motion
Spatial structure can play an important role in the evolution of cooperative behavior and the achievement of collective success of a population. In this paper, we explore the role of random and directed motion on spatial pattern formation and the payoff achieved by populations in both stochastic and deterministic models of spatial populations who engage in social interactions following a hawk-dove game. For the case of purely diffusive motion, both a stochastic spatial model and a partial differential equation model show that Turing patterns can emerge when hawks have a greater movement rate than doves, and in both models hawks and doves see an increase in population size and average payoff as hawk mobility increases. For the case of the payoff-driven motion, the stochastic model shows an overall decrease in population size and average payoff, but the PDE model displays more subtle behavior in this setting and will depend on the relative diffusivities of the two strategies. The PDE model also displays a biologically infeasible short-wave instability in the case of payoff-driven motion and equal diffusivities, indicating that we need to be careful about the mathematical properties of PDE models with payoff-driven directed motion and indicating potential use for nonlocal PDE models for spatial patterns in evolutionary games with directed motion.
- Open Access
Pattern Formation in Agent-Based and PDE Models for Evolutionary Games with Payoff-Driven Motion
Spatial structure can play an important role in the evolution of cooperative behavior and the achievement of collective success of a population. In this paper, we explore the role of random and directed motion on spatial pattern formation and the payoff achieved by populations in both stochastic and deterministic models of spatial populations who engage in social interactions following a hawk-dove game. For the case of purely diffusive motion, both a stochastic spatial model and a partial differential equation model show that Turing patterns can emerge when hawks have a greater movement rate than doves, and in both models hawks and doves see an increase in population size and average payoff as hawk mobility increases. For the case of the payoff-driven motion, the stochastic model shows an overall decrease in population size and average payoff, but the PDE model displays more subtle behavior in this setting and will depend on the relative diffusivities of the two strategies. The PDE model also displays a biologically infeasible short-wave instability in the case of payoff-driven motion and equal diffusivities, indicating that we need to be careful about the mathematical properties of PDE models with payoff-driven directed motion and indicating potential use for nonlocal PDE models for spatial patterns in evolutionary games with directed motion.
Open AccessPattern Formation in Agent-Based and PDE Models for Evolutionary Games with Payoff-Driven Motion
Spatial structure can play an important role in the evolution of cooperative behavior and the achievement of collective success of a population. In this paper, we explore the role of random and directed motion on spatial pattern formation and the payoff achieved by populations in both stochastic and deterministic models of spatial populations who engage in social interactions following a hawk-dove game. For the case of purely diffusive motion, both a stochastic spatial model and a partial differential equation model show that Turing patterns can emerge when hawks have a greater movement rate than doves, and in both models hawks and doves see an increase in population size and average payoff as hawk mobility increases. For the case of the payoff-driven motion, the stochastic model shows an overall decrease in population size and average payoff, but the PDE model displays more subtle behavior in this setting and will depend on the relative diffusivities of the two strategies. The PDE model also displays a biologically infeasible short-wave instability in the case of payoff-driven motion and equal diffusivities, indicating that we need to be careful about the mathematical properties of PDE models with payoff-driven directed motion and indicating potential use for nonlocal PDE models for spatial patterns in evolutionary games with directed motion.
- Open Access
- 19 June 2025
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 87 (7) , 1-72
Steady-State and Dynamical Behavior of a PDE Model of Multilevel Selection with Pairwise Group-Level Competition
Evolutionary competition often occurs simultaneously at multiple levels of organization, in which traits or behaviors that are costly for an individual can provide collective benefits to groups to which the individual belongs. Building off of recent work that has used ideas from game theory to study evolutionary competition within and among groups, we study a PDE model for multilevel selection that considers group-level evolutionary dynamics through a pairwise conflict depending on the strategic composition of the competing groups. This model allows for incorporation of group-level frequency dependence, facilitating the exploration for how the form of probabilities for victory in a group-level conflict can impact the long-time support for cooperation via multilevel selection. We characterize well-posedness properties for measure-valued solutions of our PDE model and apply these properties to show that the population will converge to a delta-function at the all-defector equilibrium when between-group selection is sufficiently weak. We further provide necessary conditions for the existence of bounded steady state densities for the multilevel dynamics of Prisoners’ Dilemma and Hawk-Dove scenarios, using a mix of analytical and numerical techniques to characterize the relative strength of between-group selection required to ensure the long-time survival of cooperation via multilevel selection. We also see that the average payoff at steady state appears to be limited by the average payoff of the all-cooperator group, even for games in which groups achieve maximal average payoff at intermediate levels of cooperation, generalizing behavior that has previously been observed in PDE models of multilevel selection with frequency-independent group-level competition.
- 19 June 2025
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 87 (7) , 1-72
Open AccessSteady-State and Dynamical Behavior of a PDE Model of Multilevel Selection with Pairwise Group-Level Competition
Evolutionary competition often occurs simultaneously at multiple levels of organization, in which traits or behaviors that are costly for an individual can provide collective benefits to groups to which the individual belongs. Building off of recent work that has used ideas from game theory to study evolutionary competition within and among groups, we study a PDE model for multilevel selection that considers group-level evolutionary dynamics through a pairwise conflict depending on the strategic composition of the competing groups. This model allows for incorporation of group-level frequency dependence, facilitating the exploration for how the form of probabilities for victory in a group-level conflict can impact the long-time support for cooperation via multilevel selection. We characterize well-posedness properties for measure-valued solutions of our PDE model and apply these properties to show that the population will converge to a delta-function at the all-defector equilibrium when between-group selection is sufficiently weak. We further provide necessary conditions for the existence of bounded steady state densities for the multilevel dynamics of Prisoners’ Dilemma and Hawk-Dove scenarios, using a mix of analytical and numerical techniques to characterize the relative strength of between-group selection required to ensure the long-time survival of cooperation via multilevel selection. We also see that the average payoff at steady state appears to be limited by the average payoff of the all-cooperator group, even for games in which groups achieve maximal average payoff at intermediate levels of cooperation, generalizing behavior that has previously been observed in PDE models of multilevel selection with frequency-independent group-level competition.
- 12 March 2025
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 87 (4) , 1-99
Exploring the Evolution of Altruistic Punishment with a PDE Model of Cultural Multilevel Selection
Two mechanisms that have been used to study the evolution of cooperative behavior are altruistic punishment, in which cooperative individuals pay additional costs to punish defection, and multilevel selection, in which competition between groups can help to counteract individual-level incentives to cheat. Boyd, Gintis, Bowles, and Richerson have used simulation models of cultural evolution to suggest that altruistic punishment and pairwise group-level competition can work in concert to promote cooperation, even when neither mechanism can do so on its own. In this paper, we formulate a PDE model for multilevel selection motivated by the approach of Boyd and coauthors, modeling individual-level birth-death competition with a replicator equation based on individual payoffs and describing group-level competition with pairwise conflicts based on differences in the average payoffs of the competing groups. Building off of existing PDE models for multilevel selection with frequency-independent group-level competition, we use analytical and numerical techniques to understand how the forms of individual and average payoffs can impact the long-time ability to sustain altruistic punishment in group-structured populations. We find several interesting differences between the behavior of our new PDE model with pairwise group-level competition and existing multilevel PDE models, including the observation that our new model can feature a non-monotonic dependence of the long-time collective payoff on the strength of altruistic punishment. Going forward, our PDE framework can serve as a way to connect and compare disparate approaches for understanding multilevel selection across the literature in evolutionary biology and anthropology.
- 12 March 2025
- Published by Springer Nature in Bulletin of Mathematical Biology
- Vol. 87 (4) , 1-99
Exploring the Evolution of Altruistic Punishment with a PDE Model of Cultural Multilevel Selection
Two mechanisms that have been used to study the evolution of cooperative behavior are altruistic punishment, in which cooperative individuals pay additional costs to punish defection, and multilevel selection, in which competition between groups can help to counteract individual-level incentives to cheat. Boyd, Gintis, Bowles, and Richerson have used simulation models of cultural evolution to suggest that altruistic punishment and pairwise group-level competition can work in concert to promote cooperation, even when neither mechanism can do so on its own. In this paper, we formulate a PDE model for multilevel selection motivated by the approach of Boyd and coauthors, modeling individual-level birth-death competition with a replicator equation based on individual payoffs and describing group-level competition with pairwise conflicts based on differences in the average payoffs of the competing groups. Building off of existing PDE models for multilevel selection with frequency-independent group-level competition, we use analytical and numerical techniques to understand how the forms of individual and average payoffs can impact the long-time ability to sustain altruistic punishment in group-structured populations. We find several interesting differences between the behavior of our new PDE model with pairwise group-level competition and existing multilevel PDE models, including the observation that our new model can feature a non-monotonic dependence of the long-time collective payoff on the strength of altruistic punishment. Going forward, our PDE framework can serve as a way to connect and compare disparate approaches for understanding multilevel selection across the literature in evolutionary biology and anthropology.
- Open Access
Spatial Pattern Formation in Eco-Evolutionary Games with Environment-Driven Motion
The sustainable management of common resources often leads to a social dilemma known as the tragedy of the commons: individuals benefit from rapid extraction of resources, while communities as a whole benefit from more sustainable extraction strategies. Such a social dilemma can be further complicated by the role played by space for both resources and harvesters, where spatial diffusion of resources and directed motion of harvesters can potentially feature the emergence of clusters of environmental resource and sustainable harvesting strategies. In this paper, we explore a PDE model of evolutionary game theory with environmental feedback, describing how the spatial distribution of resource extraction strategies and environmental resources can change due to both local eco-evolutionary dynamics and environmental-driven directed motion of harvesters. Through linear stability analysis, we show that this biased motion towards higher-quality environments can lead to spatial patterns in the distribution of extraction strategies, creating local regions with improved environmental quality and increase payoff for resource extractors. However, by measuring the average payoff and environmental quality across the spatial domain, we see that this pattern-forming mechanism can actually decrease the overall success of the population relative to the equilibrium outcome in the absence of spatial motion. This suggests that environmental-driven motion can produce a spatial social dilemma, in which biased motion towards more beneficial regions can produce emergent patterns featuring a worse overall environment for the population.
Open AccessSpatial Pattern Formation in Eco-Evolutionary Games with Environment-Driven Motion
The sustainable management of common resources often leads to a social dilemma known as the tragedy of the commons: individuals benefit from rapid extraction of resources, while communities as a whole benefit from more sustainable extraction strategies. Such a social dilemma can be further complicated by the role played by space for both resources and harvesters, where spatial diffusion of resources and directed motion of harvesters can potentially feature the emergence of clusters of environmental resource and sustainable harvesting strategies. In this paper, we explore a PDE model of evolutionary game theory with environmental feedback, describing how the spatial distribution of resource extraction strategies and environmental resources can change due to both local eco-evolutionary dynamics and environmental-driven directed motion of harvesters. Through linear stability analysis, we show that this biased motion towards higher-quality environments can lead to spatial patterns in the distribution of extraction strategies, creating local regions with improved environmental quality and increase payoff for resource extractors. However, by measuring the average payoff and environmental quality across the spatial domain, we see that this pattern-forming mechanism can actually decrease the overall success of the population relative to the equilibrium outcome in the absence of spatial motion. This suggests that environmental-driven motion can produce a spatial social dilemma, in which biased motion towards more beneficial regions can produce emergent patterns featuring a worse overall environment for the population.
- Open Access
Steady-State and Dynamical Behavior of a PDE Model of Multilevel Selection with Pairwise Group-Level Competition
Evolutionary competition often occurs simultaneously at multiple levels of organization, in which traits or behaviors that are costly for an individual can provide collective benefits to groups to which the individual belongs. Building off of recent work that has used ideas from game theory to study evolutionary competition within and among groups, we study a PDE model for multilevel selection that considers group-level evolutionary dynamics through a pairwise conflict depending on the strategic composition of the competing groups. This model allows for incorporation of group-level frequency dependence, facilitating the exploration for how the form of probabilities for victory in a group-level conflict can impact the long-time support for cooperation via multilevel selection. We characterize well-posedness properties for measure-valued solutions of our PDE model and apply these properties to show that the population will converge to a delta-function at the all-defector equilibrium when between-group selection is sufficiently weak. We further provide necessary conditions for the existence of bounded steady state densities for the multilevel dynamics of Prisoners' Dilemma and Hawk-Dove scenarios, using a mix of analytical and numerical techniques to characterize the relative strength of between-group selection required to ensure the long-time survival of cooperation via multilevel selection. We also see that the average payoff at steady state appears to be limited by the average payoff of the all-cooperator group, even for games in which groups achieve maximal average payoff at intermediate levels of cooperation, generalizing behavior that has previously been observed in PDE models of multilevel selection with frequency-indepdent group-level competition.
Open AccessSteady-State and Dynamical Behavior of a PDE Model of Multilevel Selection with Pairwise Group-Level Competition
Evolutionary competition often occurs simultaneously at multiple levels of organization, in which traits or behaviors that are costly for an individual can provide collective benefits to groups to which the individual belongs. Building off of recent work that has used ideas from game theory to study evolutionary competition within and among groups, we study a PDE model for multilevel selection that considers group-level evolutionary dynamics through a pairwise conflict depending on the strategic composition of the competing groups. This model allows for incorporation of group-level frequency dependence, facilitating the exploration for how the form of probabilities for victory in a group-level conflict can impact the long-time support for cooperation via multilevel selection. We characterize well-posedness properties for measure-valued solutions of our PDE model and apply these properties to show that the population will converge to a delta-function at the all-defector equilibrium when between-group selection is sufficiently weak. We further provide necessary conditions for the existence of bounded steady state densities for the multilevel dynamics of Prisoners' Dilemma and Hawk-Dove scenarios, using a mix of analytical and numerical techniques to characterize the relative strength of between-group selection required to ensure the long-time survival of cooperation via multilevel selection. We also see that the average payoff at steady state appears to be limited by the average payoff of the all-cooperator group, even for games in which groups achieve maximal average payoff at intermediate levels of cooperation, generalizing behavior that has previously been observed in PDE models of multilevel selection with frequency-indepdent group-level competition.
- Open Access
- 8 May 2023
- Published by National Academy of Sciences in Proceedings of the National Academy of Sciences
- Vol. 120 (20)
Evolutionary dynamics within and among competing groups
Biological and social systems are structured at multiple scales, and the incentives of individuals who interact in a group may diverge from the collective incentive of the group as a whole. Mechanisms to resolve this tension are responsible for profound transitions in evolutionary history, including the origin of cellular life, multicellular life, and even societies. Here, we synthesize a growing literature that extends evolutionary game theory to describe multilevel evolutionary dynamics, using nested birth–death processes and partial differential equations to model natural selection acting on competition within and among groups of individuals. We analyze how mechanisms known to promote cooperation within a single group—including assortment, reciprocity, and population structure—alter evolutionary outcomes in the presence of competition among groups. We find that population structures most conducive to cooperation in multiscale systems can differ from those most conducive within a single group. Likewise, for competitive interactions with a continuous range of strategies we find that among-group selection may fail to produce socially optimal outcomes, but it can nonetheless produce second-best solutions that balance individual incentives to defect with the collective incentives for cooperation. We conclude by describing the broad applicability of multiscale evolutionary models to problems ranging from the production of diffusible metabolites in microbes to the management of common-pool resources in human societies.
- 8 May 2023
- Published by National Academy of Sciences in Proceedings of the National Academy of Sciences
- Vol. 120 (20)
Open AccessEvolutionary dynamics within and among competing groups
Biological and social systems are structured at multiple scales, and the incentives of individuals who interact in a group may diverge from the collective incentive of the group as a whole. Mechanisms to resolve this tension are responsible for profound transitions in evolutionary history, including the origin of cellular life, multicellular life, and even societies. Here, we synthesize a growing literature that extends evolutionary game theory to describe multilevel evolutionary dynamics, using nested birth–death processes and partial differential equations to model natural selection acting on competition within and among groups of individuals. We analyze how mechanisms known to promote cooperation within a single group—including assortment, reciprocity, and population structure—alter evolutionary outcomes in the presence of competition among groups. We find that population structures most conducive to cooperation in multiscale systems can differ from those most conducive within a single group. Likewise, for competitive interactions with a continuous range of strategies we find that among-group selection may fail to produce socially optimal outcomes, but it can nonetheless produce second-best solutions that balance individual incentives to defect with the collective incentives for cooperation. We conclude by describing the broad applicability of multiscale evolutionary models to problems ranging from the production of diffusible metabolites in microbes to the management of common-pool resources in human societies.
- Open Access
- 21 November 2022
- Published by Public Library of Science (PLoS) in PLOS Computational Biology
- Vol. 18 (11) , e1010670
Social dilemmas of sociality due to beneficial and costly contagion
Levels of sociality in nature vary widely. Some species are solitary; others live in family groups; some form complex multi-family societies. Increased levels of social interaction can allow for the spread of useful innovations and beneficial information, but can also facilitate the spread of harmful contagions, such as infectious diseases. It is natural to assume that these contagion processes shape the evolution of complex social systems, but an explicit account of the dynamics of sociality under selection pressure imposed by contagion remains elusive. We consider a model for the evolution of sociality strategies in the presence of both a beneficial and costly contagion. We study the dynamics of this model at three timescales: using a susceptible-infectious-susceptible (SIS) model to describe contagion spread for given sociality strategies, a replicator equation to study the changing fractions of two different levels of sociality, and an adaptive dynamics approach to study the long-time evolution of the population level of sociality. For a wide range of assumptions about the benefits and costs of infection, we identify a social dilemma: the evolutionarily-stable sociality strategy (ESS) is distinct from the collective optimum—the level of sociality that would be best for all individuals. In particular, the ESS level of social interaction is greater (respectively less) than the social optimum when the good contagion spreads more (respectively less) readily than the bad contagion. Our results shed light on how contagion shapes the evolution of social interaction, but reveals that evolution may not necessarily lead populations to social structures that are good for any or all.
- 21 November 2022
- Published by Public Library of Science (PLoS) in PLOS Computational Biology
- Vol. 18 (11) , e1010670
Open AccessSocial dilemmas of sociality due to beneficial and costly contagion
Levels of sociality in nature vary widely. Some species are solitary; others live in family groups; some form complex multi-family societies. Increased levels of social interaction can allow for the spread of useful innovations and beneficial information, but can also facilitate the spread of harmful contagions, such as infectious diseases. It is natural to assume that these contagion processes shape the evolution of complex social systems, but an explicit account of the dynamics of sociality under selection pressure imposed by contagion remains elusive. We consider a model for the evolution of sociality strategies in the presence of both a beneficial and costly contagion. We study the dynamics of this model at three timescales: using a susceptible-infectious-susceptible (SIS) model to describe contagion spread for given sociality strategies, a replicator equation to study the changing fractions of two different levels of sociality, and an adaptive dynamics approach to study the long-time evolution of the population level of sociality. For a wide range of assumptions about the benefits and costs of infection, we identify a social dilemma: the evolutionarily-stable sociality strategy (ESS) is distinct from the collective optimum—the level of sociality that would be best for all individuals. In particular, the ESS level of social interaction is greater (respectively less) than the social optimum when the good contagion spreads more (respectively less) readily than the bad contagion. Our results shed light on how contagion shapes the evolution of social interaction, but reveals that evolution may not necessarily lead populations to social structures that are good for any or all.