Acetylcholinesterase (AChE) plays a key role in neurotransmission, in which it maintains the transmission of nerve impulses by catalyzing acetylcholine in the neuronal synapse. Acetylcholinesterase in Lepidoptera is encoded by two ace genes, ace1 and ace2. In this study, we used RNA interference to individually knock down the expression of ace1 or ace2 in a Bombyx mori (L.) (Lepidoptera: Bombycidae) cell line (BmN) to explore their functions and relationships. Knockdown efficiency was confirmed using quantitative real‐time PCR. We also monitored transcription levels of ace1 and ace2 at different time points after B. mori nucleopolyhedrovirus (BmNPV) infection. We found that when the expression of ace1 was knocked down to 37.5%, the expression of ace2 increased by 66%; when ace2 expression was reduced to 33.4%, the ace1 expression was similarly reduced to 26.7%. Acetylcholinesterase activity was decreased to 86.2% when ace2 expression was inhibited. However, no significant difference was observed in AChE activity when ace1 expression was knocked down. After BmNPV infection, ace1 expression was gradually increasing, whereas ace2 expression was gradually decreasing. Our study indicates that ace2 plays an important compensatory role for the loss of ace1 in maintaining AChE activity by increasing its expression level. In addition, ace2 may also regulate transcription of ace1. Overall, our findings help elucidate the relationship between the two ace genes in Lepidoptera.