The present invention relates to a series of quinoline and cinnoline derivatives of general formula I, pharmaceutically acceptable salts, hydrates, solvates or prodrugs thereof. And the compounds of general formula I show potent inhibitory activity gainst c-Met kinase. The present invention further relates to the uses of the compounds, pharmaceutically acceptable salts and hydrates for the preparation of medicaments for the treatment and/or prevention of diseases caused by abnormal expression of c-Met kinase, especially for treatment and/or prevention of cancer.