When producing liquefied natural gas(LNG)with hydrogen-containing methane mixture(such as coke oven gas,coal based synthetic natural gas,etc.),the hydrogen content of the feed gas has a major impact on the liquefaction process.Based on nitrogen expansion liquefaction process,this paper simulates a series of liquefaction processes of methane mixtures containing different amounts of hydrogen.After optimizing these processes by minimizing the unit power consumption,it turns out that unit power consumption increases with the increase of hydrogen content and methane recovery rate when methane recovery rate and hydrogen content are fixed respectively.The results show that the unit power consumption and the product purity of the process without distillation are acceptable,so it is feasible to produce high quality LNG from hydrogen-containing methane mixture only with liquefaction.