Disclosed are quinoline derivatives as hedgehog pathway inhibitors, especially as SMO inhibitors. Compounds of the present invention can be used in treating diseases relating to hedgehog pathway including cancer.本發明公開了一類喹啉衍生物,作為hedgehog通道的抑制劑、特別是作為SMO抑制劑,本發明的化合物可用於治療包括癌症在內的hedgehog通道有關病症。