The present invention discloses crystal forms and salt forms of a 7H-pyrrolo[2,3-d]pyrimidine compounds and preparation methods thereof, and further discloses use of the crystal forms and the salt forms in the manufacture of a medicament for treating arthritis.