We achieved optogenetic control production of immunomodulatory cytokines (IFN-β, TNF-α and IL-12), which conferred strong protection against post resection tumor recurrence and improved long-term survival rates compared with the cytokine loaded implant systems. Here, IFNB1 is linked to neoplasm.