This work developed an effective way to improve the methylene blue (MB) adsorption performance of cellulose-based hydrogel by modified with tannic acid (TA). HEC-co-p(AA-AM)/TA hydrogel was synthesized by grafting of acrylic acid (AA) and acrylamide (AM) onto hydroxyethyl cellulose (HEC), followed by modified with TA. Fourier transform infrared spectroscopy manifested that AA and AM were successfully grafted onto the hydrogel, and TA was immobilized in the hydrogel. Field emission scanning electron microscope demonstrated that the hydrogel after TA modification had a homogeneous pore structure. Brunauer-Emmett-Teller (BET) surface areas, total pore volume, and average pore diameters of the hydrogel are 11.821 m 2 g −1 , 0.0641 cm 3 g −1 , and 2.538 nm, respectively. The high swelling ratio (1179.2 g g −1 in deionized water) was in favor of the MB adsorption. The results of the adsorption experiments illustrated that HEC-cop (AA/AM) hydrogel had excellent MB adsorption performance. As the pH increases, the electrostatic attraction is enhanced, and the adsorption capacity is improved. The adsorption process was more fit with pseudo-second-order kinetics, and the maximum adsorption capacity (3438.27 mg g −1) was determined by Langmuir model. Thermodynamic studies suggested that the adsorption process is spontaneous, exothermic, and entropy reduction. X-ray photoelectron spectroscopy analysis confirmed that MB molecules were reacted with the oxygen atoms in hydroxyl and carboxyl groups by ion-exchange. High reusability demonstrated that the hydrogel could be a potential candidate for removal cationic dye from industrial effluents.