Retrograde menstruation is a widely accepted cause of endometriosis. However, not all women who experience retrograde menstruation develop endometriosis, and the mechanisms underlying these observations are not yet understood. Here, we demonstrated a pathogenic role of Fusobacterium in the formation of ovarian endometriosis. In a cohort of women, 64% of patients with endometriosis but <10% of controls were found to have Fusobacterium infiltration in the endometrium. Immunohistochemical and biochemical analyses revealed that activated transforming growth factor-β (TGF-β) signaling resulting from Fusobacterium infection of endometrial cells led to the transition from quiescent fibroblasts to transgelin (TAGLN)-positive myofibroblasts, which gained the ability to proliferate, adhere, and migrate in vitro. Fusobacterium inoculation in a syngeneic mouse model of endometriosis resulted in a marked increase in TAGLN-positive myofibroblasts and increased number and weight of endometriotic lesions. Furthermore, antibiotic treatment largely prevented establishment of endometriosis and reduced the number and weight of established endometriotic lesions in the mouse model. Our data support a mechanism for the pathogenesis of endometriosis via Fusobacterium infection and suggest that eradication of this bacterium could be an approach to treat endometriosis.