Soil ecosystems are being more contaminated with polyhalogenated carbazoles (PHCZs), which raising much attention about their impact on soil microorganisms. 3-Bromocarbazole (3-BCZ) and 1,3,6,8-tetrabromocarbazole (1,3,6,8-TBCZ) are two typical PHCZs with high detection rates in the soil environment. However, ecological risk research on these two PHCZs in soil is still lacking. In the present study, after 80 days of exposure, the ecological influence of 3-BCZ and 1,3,6,8-TBCZ was investigated based on 16S rDNA sequencing, ITS sequencing, gene (16S rDNA, ITS, amoA, nifH, narG and cbbL) abundance and soil enzyme activity. The results showed that the bacterial 16S rDNA gene abundance significantly decreased under 3-BCZ and 1,3,6,8-TBCZ exposure after 80 days of incubation. The fungal ITS gene abundance significantly decreased under 1,3,6,8-TBCZ (10 mg/kg) exposure. PHCZs contributed to the alteration of bacteria and fungi community abundance. Bacteria Sphingomonas, RB41 and fungus Mortierella, Cercophora were identified as the most dominant genera. The two PHCZs consistently decreased the relative abundance of Sphingomonas, Lysobacter, Dokdonella, Mortierella and Cercophora etc at 80th day. These keystone taxa are related to the degradation of organic compounds, carbon metabolism, and nitrogen metabolism and may thus have influence on soil ecological functions. Bacterial and fungal functions were estimated using functional annotation of prokaryotic taxa (FAPROTAX) and fungi functional guild (FUNGuild), respectively. The nitrogen and carbon metabolism pathway were affected by 3-BCZ and 1,3,6,8-TBCZ. The soil nitrogen-related functions of aerobic ammonia oxidation were decreased but the soil carbon-related functions of methanol oxidation, fermentation, and hydrocarbon degradation were increased at 80th day. The effects of 3-BCZ and 1,3,6,8-TBCZ on the abundances of the amoA, nifH, narG, and cbbL genes showed a negative trend. These results elucidate the ecological effects of PHCZs and extend our knowledge on the structure and function of soil microorganisms in PHCZ-contaminated ecosystems.