Gut microbiota play an important role in the health and disease of Asian elephants, however, its characteristics at each stage of life have not been thoroughly investigated in maintaining and regulating health of elephants. This study, therefore, aimed to characterize the profiles of the gut microbiota of captive Asian elephants from infants to the elderly. Gut microbiota were identified by 16S rRNA sequencing from the feces of captive Asian elephants with varying age groups, including infant calves, suckling calves, weaned calves, subadult and adult elephants, and geriatric elephants. The diversity of the gut microbiota was lowest in infants, stable during adulthood, and slightly decreased in the geriatric period. The gut microbiota of the infant elephants was dominated by milk-fermenting taxa including genus Bifidobacterium of family Bifidobacteriaceae together with genus Akkermansia. The fiber-fermenting taxa such as Lachnospiraceae_NK3A20_group were found to be increased in suckling elephants in differential abundance analysis by Analysis of Compositions of Microbiomes with Bias Correction (ANCOM-BC). The gut microbiota profiles after weaning until the adult period has been uniform as indicated by no significant differences in beta diversity between groups. However, the composition of the gut microbiota was found to change again in geriatric elephants. Understanding of the composition of the gut microbiota of captive Asian elephants at various life stages could be beneficial for promoting good health throughout their lifespan, as well as ensuring the welfare of captive elephants.