Disclosed in the present invention are a crystal form and salt form of a TGF-βRI inhibitor and a preparation method therefor, and further disclosed is an application of the crystal form and the salt form in preparation of medicines for treating cancers.