Tetrahydro-imidazo[1,5-a]pyrazine derivatives of formula ( I ), their preparation methods, pharmaceutical compositions containing the derivatives and uses thereof as medicaments, especially as dipeptidyl peptidase IV inhibitor, wherein the substituents of formula ( I ) are defined as same as the description.