The role of glial scars in the pathophysiology of spinal cord injury (SCI) has been widely recognized, as they create physical barriers to axonal regeneration and persistent chronic inflammation by releasing cytotoxic agents, thereby hindering nerve repair. Therefore, preventing glial scars has become an important treatment goal in SCI management. After spinal cord injury, astrocytes undergo phenotypic changes and transform into scar forming astrocytes, which mainly depend on the inflammatory response and activation of the integrin-N-cadherin pathway. In order to explore an improved treatment of SCI, a nano ant Gel was developed and characterized, which contains N-cadherin nano antagonist and polyphenol hydrogel. It aims to inhibit glial scar by alleviating inflammatory reaction and regulating astrocyte behavior, so as to promote the repair of spinal cord injury. The hydrogel has significant anti-inflammatory properties, specific calcium ion adsorption capacity and antagonism to N-cadherin, which can effectively prevent the formation and aggregation of scar forming astrocytes. A comprehensive evaluation of its efficacy was conducted using a traumatic spinal cord injury model, which can effectively inhibit glial scar formation and promote axonal regeneration. It is worth noting that nano ant gel significantly improved the motor function of spinal cord injured mice, indicating that it represents a promising treatment method.