The insect cuticle plays a key role in maintaining the insect's physiological function and behavior. Herein, the yellow‐y protein is required to produce black melanin, and is expressed in a pattern that correlates with the distribution of this pigment. However, yellow‐y can also have other functions, for instance, in insect behavior, but not much is known. In this study, we have studied the yellow‐y gene in one important model and pest species, namely the German cockroach (Blattella germanica), which is to our knowledge the first time reported. In essence, we identified the yellow‐y gene (BgY‐y) and characterized its function by using RNA interference (RNAi). Silencing of BgY‐y gene led to different developmental abnormalities (body weight and wings) in both genders. Specifically, there was an abundant decrease in melanin, turning the body color in pale yellow and the cuticle softer and more transparent. Interestingly, we also observed that the knockdown of BgY‐y impaired the male cockroaches to display a weaker response to female‐emitted contact sex pheromones, and also that the oviposition ability was weakened in the RNAi females. This study comprehensively analyzed the biological functions of the yellow‐y gene in German cockroaches from the perspectives of development, body color, courtship behavior and oviposition, and as a consequence, this may opens new avenues to explore it as a novel pest control gene.