Here the authors show that the fetal isoform of HNF4a is induced in mouse livers upon fasting and in type-2 diabetes in a manner regulated by TET3. Here, TET3 is linked to type 2 diabetes mellitus.