This paper studied the degradation of 2,2',4,4'-tetrabromodiphenyl ether (BDE-47) in contaminated soil under composting and natural conditions, respectively. BDE-47 residue in agricultural waste-composting pile was determined during 45-day composting. The microbial communities were determined by polymerase chain reaction-denaturing gradient gel electrophoresis (PCR-DGGE), and the relationships between the DGGE results and physico-chemical parameters were evaluated by redundancy analysis (RDA) and heatmap-clustering analysis. The results showed that the degradation rate of BDE-47 was significantly higher in agricultural waste-composting pile compared with control group, which was enhanced up to almost 15 % at the end of composting. There were different environmental factors which affected the distribution of composting bacterial and fungal communities. The bacterial community composition was more significantly affected by the addition of BDE-47 compared with other physico-chemical parameters, and BDE-47 had stronger influences on bacterial community than fungal community during the composting. Meanwhile, the most variation in distribution of fungal community was explained by pile temperature.