The evolution of competitive interactions among viruses was studied in the RNA phage phi6 at high and low multiplicities of infection (that is, at high and low ratios of infecting phage to host cells). At high multiplicities, many phage infect and reproduce in the same host cell, whereas at low multiplicities the viruses reproduce mainly as clones. An unexpected result of this study was that phage grown at high rates of co-infection increased in fitness initially, but then evolved lowered fitness. Here we show that the fitness of the high-multiplicity phage relative to their ancestors generates a pay-off matrix conforming to the prisoner's dilemma strategy of game theory. In this strategy, defection (selfishness) evolves, despite the greater fitness pay-off that would result if all players were to cooperate. Viral cooperation and defection can be defined as, respectively, the manufacturing and sequestering of diffusible (shared) intracellular products. Because the low-multiplicity phage did not evolve lowered fitness, we attribute the evolution of selfishness to the lack of clonal structure and the mixing of unrelated genotypes at high multiplicity.