It is an object of the present invention to provide a novel cyclin dependent kinase 8 and / or 19 inhibitor useful as anticancer agents. Summary of the invention the general formula (I):The invention relates to a compound expressed in the formula (as defined in the specification) or a cyclin dependent kinase 8 and / or 19 inhibitor containing the medically acceptable salt as an active ingredient, and its use as a prophylactic and / or therapeutic agent for cancer.本発明は、抗癌剤として有用な新規なサイクリン依存性キナーゼ8及び/又は19阻害剤を提供することを課題とする。本発明は、一般式(I):[式中、各記号の定義は明細書中に記載の通りである]で表される化合物又はその医薬上許容される塩を有効成分として含有するサイクリン依存性キナーゼ8及び/又は19阻害剤、及び癌の予防及び/又は治療剤としてのその用途に関する。