Traumatic brain injury (TBI) is an incurable and overwhelming disease accompanied with serve disability and huge financial burden, where the overproduced reactive oxygen species (ROS) can exacerbate the secondary injury, leading to massive apoptosis of neurons. In this study, β-cyclodextrin (CD)-capped hyperbranched polymers containing selenium element (HSE-CD) were crosslinked with CD-modified hyaluronic acid (HA-CD) and amantadine-modified hyaluronic acid (HA-AD) to obtain a ROS-responsive ointment (R-O). The structures of synthesized polymers were characterized with 1H nuclear magnetic resonance, and the properties of ointment were investigated with rheology and antioxidation. Compared to non-ROS-responsive ointment (N-O), the R-O ointment had stronger efficiency in decreasing the ROS level in BV2 cells in vitro. In a controlled rat cortical impact (CCI) model, the R-O ointment could relieve the DNA damage and decrease apoptosis in injured area via reducing the ROS level. Besides, after the R-O treatment, the rats showed significantly less activated astrocytes and microglia, a lower level of pro-inflammatory cytokines and a higher ratio of M2/M1 macrophage and microglia. Moreover, compared to the TBI group the R-O ointment promoted the doublecortin (DCX) expression and tissue structure integrity around the cavity, and promoted the recovery of nerve function post TBI. Statement of significanceTraumatic brain injury (TBI) is an incurable and overwhelming disease, leading to severe disability and huge social burden, where reactive oxygen species (ROS) are considered as one of the most significant factors in the secondary injury of TBI. A ROS responsive supramolecular ointment containing di-selenide bonds was injected in rats with controlled cortical impact. It relieved the DNA damage and decreased apoptosis in the injured area via reducing the ROS levels, downregulated neuroinflammation, and improved neurological recovery of TBI in vivo. This designed self-adaptive biomaterial effectively regulated the pathological microenvironment in injured tissue, and achieved better therapeutic effect.