The prominent role of the P-element induced wimpy testis (PIWI)-interacting RNA (piRNA) pathway in animals is to silence transposable elements and maintain genome stability, ensuring proper gametogenesis in gonads. GASZ (Germ cell protein with Ankyrin repeats, Sterile alpha motif, and leucine Zipper) is an evolutionarily conserved protein located on the outer mitochondrial membrane of germ cells and plays vital roles in the piRNA pathway and spermatogenesis in mammals. In the model insect Drosophila melanogaster, GASZ is essential for piRNA biogenesis and oogenesis, whereas its biological functions in non-drosophilid insects are still unknown. Here, we describe a comprehensive investigation of GASZ functions in the silkworm, Bombyx mori, a lepidopteran model insect, by using a binary transgenic CRISPR/Cas9 system. The BmGASZ mutation did not affect growth and development, but led to sterility in both males and females. Eupyrene sperm bundles of mutant males exhibited developmental defects, while the apyrene sperm bundles were normal, which were further confirmed through double copulation experiments with sex-lethal mutants, which males possess functional eupyrene sperm and abnormal apyrene sperm. In female mutant moths, ovarioles were severely degenerated and the eggs in ovarioles were deformed compared with that of wild type (WT). Further RNA-seq and RT-qPCR analysis revealed that amounts of piRNAs and transposon expression were dysregulated in gonads of mutants. In summary, this study has demonstrated vital roles of BmGASZ in gametogenesis through regulating the piRNA pathway in B. mori.