Provided is a compound heterocyclic ring derivative that has a CENP-E inhibition activity, is useful for the prevention and treatment of cancer, etc., and has excellent pharmacological efficacy. [Solution] This invention pertains to a compound indicated by formula [in formula, each symbol is as defined in the Description] or a salt thereof.Composé de type dérivé de cycle hétérocyclique ou sel de celui-ci, ayant une activité dinhibition de CENP-E, utile pour prévenir et traiter le cancer, etc., et ayant une excellente efficacité pharmacologique, ledit composé étant représenté par la formule [où chaque symbole est tel que défini dans la description].本発明は、CENP-E阻害作用を有し、癌等の予防・治療に有用であり、かつ優れた薬効を有する化合物複素環誘導体を提供する。 【解決手段】本発明は、式 [式中、各記号は本明細書中で定義した通りである。] で表される化合物またはその塩に関する。