An object of the present invention is to provide a novel compound having excellent CK2 inhibitory activity and high safety and use thereof, wherein the ring (A) is a 5-membered nitrogen-containing heterocycle. Ring B represents a saturated / unsaturated hydrocarbon ring or a saturated / unsaturated heterocyclic ring; R 1 represents a hydrogen atom, an alkyl group, an optionally substituted aryl group, or an acyl group; R 2 represents a carboxyl group , A methylene carboxyl group or a nitro group; n represents an integer of 1 to 3.) or a salt thereof, or a CK2 inhibitor containing a prodrug thereof as an active ingredient.本発明は、優れたCK2阻害活性を有し、且つ安全性の高い新規化合物及びそれらの用途を提供することを目的とし、式(I)(式中、環Aは5員含窒素複素環を表し;環Bは飽和/不飽和炭化水素環若しくは飽和/不飽和複素環を表し;R1は、水素原子、アルキル基、置換されていてもよいアリール基、又はアシル基を表し;R2はカルボキシル基、メチレンカルボキシル基又はニトロ基を表し;nは1から3の整数を表す。)で表される化合物又はその塩、若しくはそのプロドラッグを有効成分として含有するCK2阻害剤等を提供する。