Postoperative rehemorrhage following intracerebral hemorrhage surgery is intricately associated with a high mortality rate, yet there is now no effective clinical treatment. In this study, we developed a hemoglobin (Hb)-responsive in situ implantable DNA hydrogel comprising Hb aptamers cross-linked with two complementary chains and encapsulating deferoxamine mesylate (DFO). Functionally, the hydrogel generates signals upon postoperative rehemorrhage by capturing Hb, demonstrating a distinctive "self-diagnosis" capability. In addition, the ongoing capture of Hb mediates the gradual disintegration of the hydrogel, enabling the on-demand release of DFO without compromising physiological iron-dependent functions. This process achieves self-treatment by inhibiting the ferroptosis of neurocytes. In a collagenase and autologous blood injection model-induced mimic postoperative rehemorrhage model, the hydrogel exhibited a 5.58-fold increase in iron absorption efficiency, reducing hematoma size significantly (from 8.674 to 4.768 cubic millimeters). This innovative Hb-responsive DNA hydrogel not only offers a therapeutic intervention for postoperative rehemorrhage but also provides self-diagnosis feedback, holding notable promise for enhancing clinical outcomes.