American ginseng (
Panax quinquefolium
L.) is a perennial herbaceous plant widely cultivated in China, Korea, the United States, and Japan due to its multifunctional properties. In northwest China, transplanting after 2-3 years has become the main mode of artificial cultivation of American ginseng. However, the effects of the cultivation process on the chemical properties of the soil and bacterial community remain poorly understood. Hence, in the present study, high-throughput sequencing and soil chemical analyses were applied to investigate the differences between bacterial communities and nutrition driver factors in the soil during the cultivation of American ginseng. The responses of soil nutrition in different ecological niches were also determined with the results indicating that the cultivation of American ginseng significantly increased the soluble nutrients in the soil. Moreover, the bacterial diversity fluctuated with cultivation years, and 4-year-old ginseng roots had low bacterial diversity and evenness. In the first two years of cultivation, the bacterial community was more sensitive to soil nutrition compared to the last two years. Proteobacteria, Actinobacteria, Gemmatimonadetes, Acidobacteria, Firmicutes, and Bacteroidetes dominated the bacterial community regardless of the cultivation year and ecological niche. With the increase of cultivation years, the assembly of bacterial communities changed from stochastic to deterministic processes. The high abundance of
Sphingobium
,
Novosphingobium
, and
Rhizorhabdus
enriched in 4-years-old ginseng roots was mainly associated with variations in the available potassium (AK), total phosphorus (TP), total potassium (TK), and organic matter (OM).