We developed biocompatible ATP responsive DNA nanogels, by grafting DNA strands on carboxymethyl chitosan polymer chains, and then hybridizing with ATP aptamers to form core-shell nanogels. The DNA duplex structure could embed DOX in the G-C sequences, and realize simultaneous sol-gel transition and DOX release when suffering enrich ATP in tumor cells.