The Toll and immune deficiency (IMD) signaling pathways in insects are highly conserved in evolution and regulate the expression of antimicrobial peptides (AMPs) and other immune-related genes mainly through nuclear factor-kappa B (NF-κB) transcription factors. However, the differences of NF-κB transcription factors Rels and Relish in the expression regulation of AMPs and other immune-related genes in silkworm (Bombyx mori) have not been systematically reported. In this study, the BmRelA, BmRelB and BmRelish1 genes were cloned and their eukaryotic cell overexpression vectors were constructed. After the recombinant vectors were transfected into BmE and BmN cells, the expression of AMPs and immune-related genes was detected by real-time fluorescence quantitative PCR. The results showed that the expression of AMP genes Defensin2 and Gloverin2 was mainly regulated by Relish, the expression of Moricin was mainly regulated by RelA and RelB, and the expression of other AMP genes was jointly regulated by both. In addition, the expression levels of peptidoglycan recognition proteins (PGRPs), β-1, 3-glucan recognition proteins (βGRPs), lysozymes (Lys) and lysozyme-like proteins (LLPs), and nitric oxide synthase (NOS) were up-regulated to varying degrees in different cell lines in response to RelA, RelB and Relish1, suggesting that the expression of these immune-molecules was also regulated by Toll or IMD pathways in silkworm. Compared with the regulatory specificity of transcription factors in Drosophila Toll and IMD signaling pathways on the expression of AMPs, this study found that the regulatory patterns of Rels and Relish1 on the expression of AMPs in silkworm are more complex, which provides an experimental basis for further analysis of the effect mechanism and feedback mechanism of Toll and IMD pathways in insects.