Bacterial vaginosis and anaerobic bacteria are associated with endometritis.