Type 2 diabetes mellitus (T2DM) is one of the most popular chronic diseases around the whole world. To improve the compliance of patients, long-acting antidiabetic drugs needed to be developed. Dipeptidyl peptidase-4 (DPP-4) inhibitors are becoming increasingly important in the T2DM treatment due to the favorable properties. In the present study, a series of new substituted dihydropyrido [4',3':3,4] pyrazolo [1,5-a] pyrimidin-9(10H)-yl)-2-(2,5-difluorophenyl)tetrahydro-2H-pyran-3-amine were designed and synthesized as potent DPP-4 inhibitors. All compounds were characterized by 1H NMR, 13C NMR and HRMS and were evaluated in vitro. The inhibitory activity ranged from 0.43 to 12.70 μM while the inhibitory activity of positive control (omarigliptin) was 3.63 μM on DPP-4 in Caco-2 cells. Then pharmacokinetic studies were carried out in rats and compound 6c was finally selected for the further study because of its better pharmacokinetic profile. Additionally, preclinical pharmacological study of compound 6c exhibited extraordinary efficacy in vivo and good safety profile. In conclusion, compound 6c was considered as a promising DPP-4 inhibitor, which could be taken once a week or once every two weeks for the treatment of T2DM. More comprehensive researches will be carried out in the future for the further development of compound 6c.