Honey bee is important economic insect that not only pollinates fruits and crops but also provides products with various physiological activities. Bee venom is a functional agent that is widely applied in clinical treatment and pharmacy. Secapin is one of these agents that have a significant role in therapy. The functions of secapin from the bee venom have been documented, but little information is known about its heterologous expression under natural condition. Moreover, few scholars verified experimentally the functions of secapin from bee venom in vitro. In this study, we successfully constructed a heterologous expression vector, which is different from conventional expression system. A transgenic approach was established for transformation of secapin gene from the venom of Apis mellifera carnica (Ac-sec) into the edible fungi, Coprinus cinereus. Ac-sec was encoded by a 234 bp nucleotide that contained a signal peptide domain and two potential phosphorylation sites. The sequence exhibited highly homology with various secapins characterized from honey bee and related species. Southern blot data indicated that Ac-sec was present as single or multiple copy loci in the C. cinereus genome. By co-transformation and double-layer active assay, Ac-sec was expressed successfully in C. cinereus and the antibacterial activity of the recombinants was identified, showing notable antibacterial activities on different bacteria. Although Ac-sec is from the venom of Apidae, phylogenetic analysis demonstrated that Ac-sec was more closely related to that of Vespid than to bee species from Apidae. The molecular characteristics of Ac-sec and the potential roles of small peptides in biology were discussed.