•Injectable DAFM derived hydrogel with mechanical property matching natural AF and sustained TGF-β1 release was developed. The gene discussed is TGFB1; the disease is atrial fibrillation.