Optic nerve regeneration remains challenging worldwide due to the limited intrinsic regenerative capacity of retinal ganglion cells (RGCs) and the inhibitory microenvironment. Oxidative stress, induced by excessive reactive oxygen species (ROS) following optic nerve injury, is associated with prolonged neuroinflammation, resulting in a secondary injury of RGCs and the impairment of axon regeneration. Herein, we developed a bionic nanocomposite scaffold (GA@PDA) with immunoregulatory ability for enhanced optic nerve regeneration. The ice-templating method was employed to fabricate biopolymer-based scaffolds with a directional porous structure, mimicking the optic nerve, which effectively guided the oriented growth of neuronal cells. The incorporation of bioinspired polydopamine nanoparticles (PDA NPs) further confers excellent ROS scavenging ability, thereby modulating the phenotype transformation of microglia/macrophages from pro-inflammatory M1 to anti-inflammatory M2. In a rat optic nerve crush model, the implantation of GA@PDA scaffold enhanced survival of RGCs and promoted axonal regeneration. Our study offers novel insights and holds promising potential for the advancement of engineered biomaterials in facilitating optic nerve regeneration.