The genus Megasphaera is relevant to the environment, human health and food, and renewable energy for the future. In this study, a primer set was designed for PCR-restriction fragment length polymorphism (RFLP) analyses to detect and identify the members of Megasphaera. Direct detection and identification were achieved for environmental samples and isolates.