The phenomenon of phase variation between yellow and tan forms of Myxococcus xanthus has been recognized for several decades, but it is not known what role this variation may play in the ecology of myxobacteria. We confirm an earlier report that tan variants are disproportionately more numerous in the resulting spore population of a M. xanthus fruiting body than the tan vegetative cells that contributed to fruiting body formation. However, we found that tan cells may not require yellow cells for fruiting body formation or starvation-induced sporulation of tan cells. Here we report three differences between the yellow and tan variants that may play important roles in the soil ecology of M. xanthus. Specifically, the yellow variant is more capable of forming biofilms, is more sensitive to lysozyme, and is more resistant to ingestion by bacteriophagous nematodes. We also show that the myxobacterial fruiting body is more resistant to predation by worms than are dispersed M. xanthus cells.