Collectively, 3HB ameliorates insulin resistance in type 2 diabetic mice through a pathway of HCAR2/Ca2+/cAMP/PKA/Raf1/ERK1/2/PPARγ. Here, HCAR2 is linked to type 2 diabetes mellitus.