This study examines diatom assemblages in the Matsu Archipelago, influenced by Minjiang River runoff, and focuses on harmful algal blooms (HABs) from August 2021 to July 2022. Utilizing 18S rRNA gene metabarcoding and microscopic analysis, we observed a significant diatom bloom during early summer runoff, peaking at 5×105 cells L-1. The research highlights the diatom bloom and reveals dynamic community changes during the runoff season, with dominant genera including: Pseudo-nitzschia, Chaetoceros, and Skeletonema. Skeletonema abundance correlated with NO3 levels, Chaetoceros had a slight PO4 affinity, and Pseudo-nitzschia showed a negative correlation with Skeletonema. Notably, high concentrations of potential toxin-producing Pseudo-nitzschia species like P. multistriata, P. pungens, and an autumn peak of P. cuspidata were observed, preferring high light and pH conditions. These findings highlight the intricate relationship between diatom dynamics and environmental factors, offering essential insights for managing HABs, especially Pseudo-nitzschia species, amidst environmental changes.