We introduced a novel strategy of β-galactosidase instructed supramolecular hydrogelation for selective identification and removal of senescent cells.