Background: Plant microbiome is an integral part of the host influencing its growth and health. The increasing evidence indicates that plant rhizosphere may recruit beneficial microbes to suppress soil-borne pathogen, but the ecological mechanisms that govern plant microbiome assembly and functions under disease in both below and aboveground compartments are not fully understood. Here we examined both bacterial and fungal communities from soils (rhizosphere and bulk soil) and multiple plant compartments (e.g. root, stem, and fruit) of chili pepper (Capsicum annuum L.) at two pepper production sites, and explored how Fusarium wilt disease (FWD) affect the assembly, co-occurrence patterns, and ecological functions of plant-associated microbiomes. Results: Our data demonstrated that FWD had less impact on reproductive organ (fruit) than on vegetative organs (root and stem), with the strongest impact in the stem upper epidermis. Fungal intra-kingdom networks presented lower stabilities and their communities were more sensitive to FWD than the bacterial communities. Moreover, the diseased pepper was more susceptible to colonization by other pathogenic fungi, but they may recruit potential beneficial bacteria to facilitate host or offspring survival, and FWD may enhance the ecological importance of fungal taxa in the interkingdom network. Further, metagenomic analysis revealed that several potential protective functional genes encoding detoxify and biofilm formation were significantly enriched in the diseased pepper.Conclusion: Together, these results significantly advance our understanding of pepper microbiome assembly and functions under biotic stress. Our work highlights the diseased plant and the aboveground compartments harbor a potential of beneficial microbiomes and functions that, in concert, can provide potential critical data for harnessing the plant microbiome for sustainable agriculture.