The present disclosure describes thiazole and pyridine carboxamide derivatives, their compositions and methods of use. The compounds inhibit the activity of the Pim kinases and are useful in the treatment of diseases related to the activity of Pim kinases including, e.g., cancer and other diseases.