Pacific oysters (Magallana gigas, also known as Crassostrea gigas), the most widely farmed oysters, are under threat from climate change and emerging pathogens. In part, their resilience may be affected by their microbiome, which, in turn, may be influenced by ocean warming and acidification. Consequently, for three weeks, we exposed early-development Pacific oyster spat to different temperatures (18 and 24 °C) and pCO2 levels (800, 1600 and 2800 μatm) in a fully crossed design. Under all conditions, the microbiome developed over time, with potentially pathogenic ciliates (Uronema marinum) greatly reduced in all treatments, suggesting that the spat's microbiome undergoes adaptive shifts as the oysters age. The microbiome composition also differed significantly with temperature, but not acidification, indicating that M. gigas spat microbiomes can be altered by ocean warming but resilient to ocean acidification in our experiments. These findings highlight the spat microbiome′s flexibility to environmental changes as well as its ″protective″ capability against potentially pathogenic microbes.