Ommochromes are major insect pigments involved in coloration of compound eyes, eggs, epidermis and wings. In the silkworm Bombyx mori, adult compound eyes and eggs contain a mixture of the ommochrome pigments such as ommin and xanthommatin. Here, we identified the gene involved in ommochrome biosynthesis by positional cloning of B. mori egg and eye color mutant pink-eyed white egg (pe). The recessive homozygote of pe has bright red eyes and white or pale pink eggs instead of a normal dark coloration due to the decrease of dark ommochrome pigments. By genetic linkage analysis, we narrowed down the pe-linked region to~258 kb, containing 17 predicted genes. RNA sequencing analyses showed that the expression of one candidate gene, the ortholog of Drosophila haem peroxidase cardinal, coincided with egg pigmentation timing, similar to other ommochrome-related genes such as Bm-scarlet and Bm-re. In two pe strains, a common missense mutation was found within a conserved motif of B. mori cardinal homolog (Bm-cardinal). RNA interference-mediated knockdown and transcription activatorlike effector nuclease (TALEN)-mediated knockout of the Bm-cardinal gene produced the same phenotype as pe in terms of egg, adult eye and larval epidermis coloration. A complementation test of the pe mutant with the TALEN-mediated Bm-cardinaldeficient strain showed that the mutant phenotype could not be rescued, indicating that Bm-cardinal is responsible for pe. Moreover, knockdown of the cardinal homolog in Tribolium castaneum also induced red compound eyes. Our results indicate that cardinal plays a major role in ommochrome synthesis of holometabolous insects.