Chimeric antigen receptor T cell therapies have achieved great success in eradicating some liquid tumors, whereas the preclinical results in treating solid tumors have proven less decisive. One of the principal challenges in solid tumor treatment is the physical barrier composed of a dense extracellular matrix, which prevents immune cells from penetrating the tissue to attack intratumoral cancer cells. Here, we improve immune cell infiltration into solid tumors by manipulating septin-7 functions in cells. Using protein allosteric design, we reprogram the three-dimensional structure of septin-7 and insert a blue light-responsive light-oxygen-voltage-sensing domain 2 (LOV2), creating a light-controllable septin-7-LOV2 hybrid protein. Blue light inhibits septin-7 function in live cells, inducing extended cell protrusions and cell polarization, enhancing cell transmigration efficiency through confining spaces. We genetically edited human natural killer cell line (NK92) and mouse primary CD8+ T-cells expressing the engineered protein, and we demonstrated improved penetration and cytotoxicity against various tumor spheroid models. Our proposed strategy to enhance immune cell infiltration is compatible with other methodologies and therefore, could be used in combination to further improve cell-based immunotherapies against solid tumors.