The study reported the upflow anaerobic sludge blanket (UASB) reactor performance in treating wastewater containing trichloroethylene (TCE) and characterized variations of bacteria composition and structure by changing the pH from 6.0 to 8.0. A slightly acidic environment (pH < 7.0) had a greater impact on the TCE removal. Illumina pyrosequencing was applied to investigate the bacterial community changes in response to pH shifts. The results demonstrated that pH greatly influenced the dominance and presence of specific populations. The potential TCE degradation pathway in the UASB reactor was proposed. Importantly, the genus Dehalobacter which was capable of reductively dechlorinating TCE was detected, and it was not found at pH of 6.0, which presumably is the reason why the removal efficiency of TCE was the lowest (80.73 %). Through Pearson correlation analyses, the relative abundance of Dehalobacter positively correlated with TCE removal efficiency (R = 0.912). However, the relative abundance of Lactococcus negatively correlated with TCE removal efficiency according to the results from Pearson correlation analyses and redundancy analysis (RDA).