China has abundant reserves of low rank coal,and the material utilization of low rank coal is a major demand for the country.With the discharge of urban sewage sludge is rising,and the demand for resource utilization of high moisture sewage sludge is crucial.Hy-drothermal carbonization of low-rank coal and sewage sludge can utilize the sulfur and nitrogen elements in raw materials effectively and prepare sulfur and nitrogen doped hydrochar.Hydrochar had relatively less abundant pores,and activation by activator can enrich its pore structure and prepare sulfur nitrogen co-doped porous carbon.In this paper,relatively mild K2CO3 was chosen as an activator for por-ous carbon preparation from co-hydrochars of sub-bituminous coal and sewage sludge,and the adsorption performance of porous carbon on CO2 and SO2was also studied.The results showed that compared with those of the original hydrochars,the sulfur and nitrogen contents re-duced after the activation modification by K2CO3,and the specific surface area of the porous carbon was increased from 23.92 m2/g to 331.77 m2/g,and the pore volume was increased from 0.07 cm3/g to 0.23 cm3/g.The prepared porous carbon had certain adsorption effect on CO2 and SO2.For the hydrochar obtained from co-hydrothermal carbonizaiton at the condition that the mass ratio of sub-bitumi-nous coal to sewage sludge was 7∶3,and the hydrothermal carbonization temperature was 160℃,activated by K2CO3at 700℃,the por-ous carbon has a CO2 adsorption capacity of 1.56 mmol/g at 25℃;when the mass ratio of sub-bituminous coal to sewage sludge was 1∶1 and the hydrothermal carbonization temperature was 160℃,the activated hydrochar prepared had an adsorption capacity of 52.2 mg/g for SO2 at an adsorption temperature of 120℃.The adsorption amount decreased with the increase of the hydrothermal carbonization tem-perature,and the adsorption performance of the porous carbon from co-hydrochar was better than that from the separate hydrochar for CO2 and SO2.The results may provide a theoretical basis for the clean and efficient utilization of low-rank coal and sewage sludge,as well as for the preparation of low-cost and efficient CO2 and SO2 adsorbent.