Despite the ecological and biotechnological significance of microalgae-bacterium symbionts, the response of host-virus interactions to external environmental fluctuations and the role of viruses in phycosphere remain largely unexplored. Herein, we employed algal-bacterial granular sludge (ABGS) with varying light intensity and organic carbon loading to investigate the mechanisms of microalgae-bacterium-virus symbionts in response to environmental fluctuations. Metagenomics revealed that enhanced light intensity decreased the diversity of microalgae, so did the diversity of symbiotic bacteria and viruses. As carbon sources decreased, bacteria prompted horizontal gene transfer in phycosphere by 12.76 %-157.40 %, increased the proportion of oligotrophs as keystone species (0.00 % vs 14.29 %) as well as viruses using oligotrophs as hosts (18.52 % vs 25.00 %). Furthermore, virus-carried auxiliary metabolic genes (AMGs) and biosynthetic gene clusters (BGCs) encoding vitamin B