ZSM-5 zeolite catalysts were modified with different proportion Ni and Co prepared by excessive impregnation method and characterized by XRD, SEM-EDS, BET and NH3-TPD. The effect of different proportions Ni/Co/ZSM-5 catalysts, the pyrolysis temperature and the catalyst dosages on the component of pyrolysis gas and coal tar of Shenfu coal were investigated. The results show that the total content of pyrolysis gas with Ni3Co5Z catalyst can be increased by 11.69 percentage points compared to raw coal, and the content of H2 and CH4 can be increased by 4.25 percentage points and 5.37 percentage points, respectively. The 650 ℃ is the best pyrolysis temperature, and the content of H2 and CH4 can be increased by 6.77 percentage points and 0.50 percentage points, respectively. However, the dosages of catalyst have little influence on the pyrolysis gas. Moreover, when the catalyst is Co3Ni5Z, the amount of catalyst added is 0.3 g, and the pyrolysis temperature is 600 ℃, the yields of aromatic hydrocarbons and phenols in coal tar are 5.91 percentage points and 3.35 percentage points higher than those in raw coal respectively. The acid amount of Ni/Co/ZSM-5 catalyst has close relation with the catalytic performance, a certain degree of acid amounts can promote the coal pyrolysis, increase the effective gas composition of the gas production and improve the quality of the coal pyrolysis oil.