Plants produce various pigments that not only appear as attractive colors but also provide valuable resources in applications in daily life and scientific research. Biosynthesis pathways for these natural plant pigments are well studied, and most have multiple enzymes that vary among plant species. However, adapting these pathways to animals remains a challenge. Here, we describe successful biosynthesis of betalains, water-soluble pigments found only in a single plant order, Caryophyllales, in transgenic silkworms by coexpressing three betalain synthesis genes, cytochrome P450 enzyme CYP76AD1, DOPA 4,5-dioxygenase, and betanidin 5-O-glucosyltransferase. Betalains can be synthesized in various tissues under the control of the ubiquitous IE1 promoter but accumulate mainly in the hemolymph with yields as high as 274 μg/ml. Additionally, transformed larvae and pupae show a strong red color easily distinguishable from wild-type animals. In experiments in which expression is controlled by the promoter of silk gland-specific gene, fibroin heavy-chain, betalains are found predominantly in the silk glands and can be secreted into cocoons through spinning. Betalains in transformed cocoons are easily recovered from cocoon shells in water with average yields reaching 14.4 μg/mg. These data provide evidence that insects can synthesize natural plant pigments through a complex, multiple enzyme-mediated synthesis pathway. Such pigments also can serve as dominant visible markers in insect transgenesis applications. This study provides an approach to producing valuable plant-derived compounds by using genetically engineered silkworms as a bioreactor.