hexahydropyrrolopyrrole derivatives , preparation methods and pharmaceutical uses thereof are provided . specifically , dipeptidyl peptidase iv inhibitors presented by following formula are provided . such compounds can be used for treating or preventing the diseases associated with dipeptidyl peptidase iv , such as diabetes , obesity and hyperlipemia . the compounds presented by formula and pharmaceutically acceptable salts thereof , a method for preparing a pharmaceutical composition thereof and their uses in the manufacture of medicaments for treating or preventing the disease associated with dipeptidyl peptidase iv are provided .