The present invention relates to a compound represented by the formula: wherein W is C(R 1 ) or N, each A is an optionally substituted aryl group or a heteroaryl group, X 1 is -NR 3 -Y 1 -, -O-, -S-, -SO-, -SO 2 or -CHR 3 - wherein R 3 is a hydrogen atom or an optionally substituted aliphatic hydrocarbon group, or R 3 is optionally bonded to A to form an optionally substituted ring structure, R 1 is a hydrogen atom or an optionally substituted group bonded via a carbon atom, a nitrogen atom or an oxygen atom, R 2 is a hydrogen atom or optionally substituted group bonded via a carbon atom or a sulfur atom, or R 1 and R 2 , or R 2 and R 3 are optionally bonded to form an optionally substituted ring structure, or a salt thereof, and a tyrosine kinase inhibitor or an agent for the prophylaxis or treatment of cancer, which contains this compound or a prodrug thereof.하기 화학식으로 표시되는 화합물, 또는 이의 염:[식에서, W 는 C(R1) 또는 N 이고; A 는 임의 치환된 아릴기 또는 임의 치환된 헤테로아릴기이고; X1 은 -NR3-Y1-, -O-, -S-, -SO-, -SO2- 또는 -CHR3- 이고 (여기서, R3 은 수소 원자 또는 임의 치환된 지방족 탄화수소기이고, 단 R3 은 A 와 결합하여 임의 치환된 고리 구조를 형성할 수 있음); R1 은 탄소 원자, 질소 원자 또는 산소 원자를 통해 결합된 임의 치환된 기 또는 수소 원자를 나타내고; R2 는 탄소 원자 또는 황 원자를 통해 결합된 임의 치환된 기 또는 수소 원자를 나타내고, 단, R2 는 R1 또는 R3 과 결합하여 임의 치환된 고리 구조를 형성할 수 있음].또한, 상기 화합물 또는 이의 전구약물을 각각 함유하는 암 예방/치료제 또는 타이로신 키나아제 억제제가 제공된다.