Coprophagy is a behavior where animals consume feces, and has been observed across a wide range of species, including birds and mammals. The phenomenon is particularly prevalent in juveniles, but the reasons for this remain unclear. One hypothesis is that coprophagy enables offspring to acquire beneficial gut microbes that aid development. However, despite the potential importance of this behavior, studies investigating the effects in juveniles are rare. Here we experimentally test this idea by examining how ingestion of adult feces by ostrich chicks affects their gut microbiota development, growth, feeding behavior, pathogen abundance, and mortality. We conducted extensive longitudinal experiments for 8 weeks, repeated over 2 years. It involved 240 chicks, of which 128 were provided daily access to fresh fecal material from adults and 112 were simultaneously given a control treatment. Repeated measures, behavioral observations, and DNA metabarcoding of the microbial gut community, both prior to and over the course of the experiment, allowed us to evaluate multiple aspects of the behavior. The results show that coprophagy causes (a) marked shifts to the juvenile gut microbiota, including a major increase in diversity and rapid maturation of the microbial composition, (b) higher growth rates (fecal-supplemented chicks became 9.4% heavier at 8 weeks old), (c) changes to overall feeding behavior but no differences in feed intake, (d) lower abundance of a common gut pathogen (Clostridium colinum), and (e) lower mortality associated with gut disease. Together, our results suggest that the behavior of coprophagy in juveniles is highly beneficial and may have evolved to accelerate the development of gut microbiota. The behavior of fecal feeding (coprophagy) is widespread among animals, yet our understanding of its causes and consequences is extremely limited. Here we experimentally tested the effects of coprophagy on the development of ostrich chicks by providing treatment groups with adult feces collected daily. We examined how coprophagy influenced the gut microbiome, juvenile growth, feeding behavior, pathogen abundance, and survival over the first 8 weeks of development. Fecal-supplemented individuals readily engaged in coprophagia, which resulted in a rapid maturation of their gut microbiome. Compared to control groups, which had no access to adult feces, treatment groups experienced a drastic increase in microbial diversity and their microbial composition rapidly shifted towards that of adults. Coprophagy also resulted in a higher juvenile growth rate, without increasing feed intake, and reduced mortality associated with gut bacterial infection. Our results suggest that the behavior of coprophagy in juveniles may have evolved to accelerate the development of gut microbiota. These findings have broad implications for animal husbandry and captive breeding programs of wildlife, and contribute to an improved general understanding of how host-associated microbes influence the evolution of animal behavior.