Earthworms, long utilized in traditional medicine, serve as a source of inspiration for modern therapeutics. Lysenin, a defensive factor in the coelom fluid of the earthworm Eisenia fetida, has multiple bioactivities. However, the inherent toxicity of Lysenin as a pore‐forming protein (PFP) restricts its application in therapy. Here, a gene therapy strategy based on Lysenin for cancer treatment is presented. The formulation consists of polymeric nanoparticles complexed with the plasmid encoding Lysenin. After transfection in vitro, melanoma cells can express Lysenin, resulting in necrosis, autophagy, and immunogenic cell death. The secretory signal peptide alters the intracellular distribution of the expressed product of Lysenin, thereby potentiating its anticancer efficacy. The intratumor injection of Lysenin gene formulation can efficiently kill the transfected melanoma cells and activate the antitumor immune response. Notably, no obvious systemic toxicity is observed during the treatment. Non‐viral gene therapy based on Lysenin derived from Eisenia foetida exhibits potential in cancer therapy, which can inspire future cancer therapeutics.