Antimicrobial peptides, produced by innate immune system of hosts in response to invading pathogens, are capable of fighting against a spectrum of bacteria, viruses, fungi, parasites and cancer cells. Here, a recombinant silkworm AMP Bmattacin2 from heterologous expression is studied, indicating a broad spectrum of antibacterial activity and showing selective killing ability towards skin and colon cancer cells over their normal cell counterparts. For the purpose of biomedical application, the electrospinning fabrication technique is employed to load Bmattacin2 into PLLA nanofibrous membrane. In addition to a good compatibility with the normal cells, Bmattacin2 loaded nanofibrous membranes demonstrate instant antibacterial effects and sustained anticancer effects. The cancer cell and bacteria targeting dynamics of recombinant Bmattacin2 are investigated. With these characteristics, PLLA/Bmattacin2 composite membranes have a great potential for developing novel biomedical applications such as cancer therapies and wound healing treatments.