Microbial secondary metabolites play important roles in biotic interactions in microbial communities and yet, we do not understand how these compounds impact the assembly and development of microbial communities. To address the implications of microbial secondary metabolite production on biotic interactions in the assembly of natural seawater microbiomes, we constructed a model system where the assembly of a natural seawater biofilm community was influenced by the addition of the marine biofilm forming Phaeobacter inhibens that can produce the antibiotic secondary metabolite tropodithietic acid (TDA), or a mutant incapable of TDA production. Because of the broad antibiotic activity of TDA, we hypothesized that the potential of P. inhibens to produce TDA would strongly affect both biofilm and planktonic community assembly patterns. We show that 1.9 % of the microbial composition variance across both environments could be attributed to the presence of WT P. inhibens, and especially genera of the Bacteriodetes were increased by the presence of the TDA producer. Moreover, network analysis with inferred putative microbial interactions revealed that P. inhibens mainly displayed strong positive associations with genera of the Flavobacteriaceae and Alteromonadaceae, and that P. inhibens acts as a keystone OTU in the biofilm exclusively due to its potential to produce TDA. Our results demonstrate the potential impact of microbial secondary metabolites on microbial interactions and assembly dynamics of complex microbial communities.