DNA hydrogel represents a noteworthy biomaterial. The preparation of biosensors by combining DNA hydrogel with electrochemiluminescence can simplify the modification process and raise the experimental efficiency. In this study, an electrochemiluminescence (ECL) biosensor based on DNA hydrogel was fabricated to detect adenosine triphosphate (ATP) simply and quickly. CdTe-Ru@SiO2 nanospheres capable of ECL resonance energy transfer (RET) were synthesized and encapsulated CdTe-Ru@SiO2 in the DNA hydrogel to provide strong and stable ECL signals. DNA hydrogel avoided the labeling of ECL signal molecules. The aptamer of ATP as the linker of the hydrogel for the specificity of ATP detection. The cross-linked structure of the aptamer and the polymer chains was opened by ATP, and then the decomposition of the DNA hydrogel initiated the escape of CdTe-Ru@SiO2 to generate an ECL signal. The designed biosensor detected ATP without too much modification and complex experimental steps on the electrode surface, with good specificity and stability, and a wide linear range. The detection range was 10-5000 nM, and the detection limit was 6.68 nM (S/N=3). The combination of DNA hydrogel and ECL biosensor provided a new way for clinical detection of ATP and other biomolecule.