Here, we report a biocompatible alginate-based hydrogel loaded with Pexidartinib (PLX)-encapsulated nanoparticles that gradually release PLX at the tumor site to block colony-stimulating factor 1 receptors (CSF1R) for depleting TAMs. Here, CSF1R is linked to neoplasm.