The present invention relates to compounds, which inhibit dipeptidyl peptidase IV (DPP-IV) and are useful for the prevention or treatment of diabetes, especially type II, as well as hyperglycemia, metabolic syndrome, hyperinsulinemia, obesity, atherosclerosis, various immunomodulatory diseases, and other diseases.