The invention relates to a quinoline shown in the formula I, a cinnoline derivant, and pharmaceutically acceptable salt, hydrate, solvate and prodrug thereof, wherein substituent groups Ar, R1, R2, R3, X, Y, P, Z and n have the meanings given in the specification. The invention also relates to a compound shown in the formula I, which plays a strong role of restraining c-Met kinase, and the usages of the compound and the pharmaceutically acceptable salt and hydrate thereof in preparing drugs for treating diseases caused by c-Met kinase overexpression, particularly in preparing drugs for treating and / or preventing cancer.