Aquaculture is becoming a relevant and productive source of seafood, and production is expected to double in the near future. However, bivalve activities can significantly impact coastal ecosystem functioning. To study the direct and indirect impacts of oysters on the microbial food web, a 0D biogeochemical modelling approach was adopted. The model was adjusted by parameter optimisation, assimilating data from several mesocosm observations of concentrations of nitrate, phosphate, silicate, dissolved organic carbon, chlorophyll, and bacterial biomass. The optimisation method provided a set of optimal parameters to fit the experimental observations of ‘control’ (i.e. natural water without oysters) and ‘oyster’ (i.e. natural water with oysters) mesocosms. The modelling results showed good accordance with the experimental observations, suggesting that the oysters directly reduced phytoplankton community biomass, thus constraining the ecosystem to a more heterotrophic state. Oysters also reduced competition between bacteria and phytoplankton for nutrient uptake, favouring higher bacterial biomass than in the control experiment. Additionally, the presence of oysters strongly increased large micro-zooplankton biomass (50-200 µm; mainly ciliates and large flagellates). This was a consequence of bacterivory by small zooplankton (5-50 µm; mostly flagellates and small ciliates), providing a trophic link between bacteria and larger zooplankton. In conclusion, parameter optimisation showed good capacity to manage experimental data in order to build a more realistic model. Such models, in connection with future developments in aquaculture and global change scenarios, could be a promising tool for exploited ecosystem management and testing different environmental scenarios.