Metamorphosis is a transformation process in larval development associated with changes in morphological and physiological features, including the immune system. The gastrointestinal tract harbors a plethora of bacteria, which might affect the digestion and absorption of nutrients, immunity, and gut-brain crosstalk in the host. In this study, we have performed metagenomic and transcriptomic analyses on the intestines of grouper at the pre-, mid- and post-metamorphosis stages. The sequencing data of 16S rRNA gene showed drastic changes in the microbial communities at different developmental stages. The transcriptomic data revealed that the leukocyte transendothelial migration and the phagosome pathways might play important roles in mediating immunity in grouper at the three developmental stages. This information will increase our understanding of the metamorphosis process in grouper larvae, and shed light on the development of antimicrobial strategy during larval development.