The present invention provides a novel compound or a pharmaceutically acceptable salt thereof, having inhibitory action on an EGFR Tyr kinase having an exon 20 insertion mutation and/or on an HER2 Tyr kinase having an exon 20 insertion mutation. The invention is the compound represented by general formula (I) or a pharmaceutically acceptable salt thereof. (In formula (I), R1, R2, R3, R4, R5, and R6, are each as defined in the specification.).本發明之課題係提供一種新穎化合物或其製藥上可容許的鹽,其係具有:具有外顯子20插入突變的EGFR酪胺酸激酶及/或具有外顯子20插入突變的HER2酪胺酸激酶抑制作用。其解決手段係通式(I)所表示的化合物或其製藥上可容許的鹽(其中,式(I)中之R1、R2、R3、R4、R5及R6係各自與說明書中之定義同義)。