The present invention relates to pyrazolopyridines and imidazopyridines which are inhibitors of the kinase PDK1 and are thus useful for the treatment of myeloproliferative disorders or cancer. The compounds are also useful as inhibitors of other kinases such as FGFR3, NTRK3, RP-S6K and WEE1. Furthermore, the present compounds also selectively inhibit microtubule affinity regulating kinase (MARK) and are therefore useful for the treatment or prevention of Alzheimer's disease.