Marine organic matter fuels the growth of microbial communities, shaping the composition of bacteria that specialize in its breakdown. However, responses of free-living (FL) and particle-associated (PA) bacterial communities to the changing pools of dissolved organic matter (DOM) and particulate organic matter (POM) remained unclear. This study investigates the composition of size-fractionated bacterial communities, DOM and POM in coastal waters over a 22-day period that includes a diatom bloom. Co-occurrence analysis showed that the FL bacterial communities were significantly less stable than PA communities. During the diatom bloom, we observed a significant increase in DOM molecules, particularly those derived from amino acids and peptides. In contrast, the relative intensities of major POM molecule classes remained stable despite the algal bloom's influence. Our study revealed a strong negative correlation between bacterial alpha-diversity and the amount of molecules in the organic matter pool. Similarly, bacterial community beta-diversity was found to be related to the composition of organic matter pool. However, the composition of organic matter was more strongly related to the composition of FL bacterial communities compared to PA communities. This suggests that FL bacteria exhibit greater variations in temporal dynamics and higher sensitivity to the specific structure of organic matter molecules.