The present invention provides a pharmaceutical composition for preventing or treating cancer, and a method of preventing or treating cancer by using the same, wherein the pharmaceutical composition comprises: a compound represented by chemical formula II, capable of efficiently inhibiting the TGF- signaling pathway; and an immune checkpoint pathway inhibitor. According to the present invention, the pharmaceutical composition may be used to effectively prevent or treat cancer.암 예방 또는 치료용 약학적 조성물 및 이를 이용한 암 예방 또는 치료 방법을 제공한다. 이에 따르면, 암을 효과적으로 예방 또는 치료하는데 이용할 수 있다.