The process flow of biogas purification unit includes: feed gas pretreatment, desulfurization, buffer recovery, biogas compression, decarbonization, dehydration, storage, natural gas pressurization, cooling and desorption of circulating water, etc. Biogas purification device is to remove impurities in biogas to make it become high-quality CH4 with high methane content, calorific value and impurity gas component quality meeting the requirements of natural gas standards. Pressure swing adsorption method is usually used for purification, and the selective adsorption characteristics of adsorbent for carbon dioxide are used, that is, carbon dioxide has higher separation coefficient than other gaseous components on the adsorbent, To achieve the purpose of removing carbon dioxide in biogas.