NOVELTY - Production of a renewable natural gas in an integrated biodigestion and resin-wafer electrodeionization system, involves: (a) anaerobically digesting a biomass to produce a biogas stream, a supernatant stream and a biodigestate stream; (b) introducing the biogas stream and the supernatant stream to a resin-wafer electrodeionization system (RW-EDI) (8, 12) to produce a CO2-depleted, methane-enriched biogas, CO2 and a bicarbonate-depleted stream of fluid; (c) removing the CO2-depleted, methane-enriched biogas from the RW-EDI system; and (d) removing the CO2 gas from the RW-EDI system.    USE - For production of a renewable natural gas in an integrated biodigestion and resin-wafer electrodeionization system; and for generating CO2-depleted, methane-enriched biogas (claimed).    ADVANTAGE - The process is a cost-effective process to produce highly concentrated natural gas with little to no CO2 present. In addition, the process is an energy-efficient alternative to current methods of producing methane and separating CO2. Moreover, the phosphate-rich supernatant and centrate streams produced as a result of anaerobic digestion and physiochemical conditioning, respectively, can be used as an extractant in the RW-EDI system to remove the CO2 contained within the biogas. The anaerobic digester performance and accelerate biogas production by recycling bicarbonates from the RW-EDI apparatus back to the digester, thereby maintain stable pH and alkalinity in the digester.    DETAILED DESCRIPTION - INDEPENDENT CLAIMS are included for the following:    (1) a system for generating CO2-depleted, methane-enriched biogas comprising: an anaerobic digestion apparatus comprising a biomass inlet, a biogas outlet, a supernatant outlet, and a biodigestate outlet; and a resin-wafer electrodeionization (RW-EDI) apparatus comprising a biogas inlet, a supernatant inlet, a CO2-depleted, methane-enriched biogas outlet, and a CO2 outlet; where the biogas outlet and the supernatant outlet are in fluid communication with the RW-EDI system; and    (2) a system for generating natural gas, comprising: a wastewater treatment apparatus comprising a wastewater inlet, a treated water outlet, and a biomass outlet; an anaerobic digestion apparatus comprising a biomass inlet, a biogas outlet, a supernatant outlet, and a biodigestate outlet; and a resin-wafer electrodeionization (RW-EDI) apparatus comprising a biogas inlet, a supernatant inlet, a natural gas outlet, a bicarbonate outlet, where the biomass outlet is in fluid communication with the biomass inlet, and where the biogas outlet and the centrate outlet are in fluid communication with the RW-EDI system, where the RW-EDI apparatus comprises a cathode, an anode, and at least one basic porous solid ion exchange resin wafer; where the cathode and anode are separated by several porous solid ion exchange resin wafer arranged in a stack between the cathode and the anode; where the cathode, the anode, and the wafers are interspersed with ion exchange membranes; where each basic wafer comprises a porous basic ion exchange medium; where the basic wafer comprises a biogas inlet, a supernatant stream inlet, a natural gas outlet, and a bicarbonate stream outlet; and where the bicarbonate stream outlet is in fluid communication with the initial wastewater stream inlet.    DESCRIPTION OF DRAWING(S) - The figure shows view of a system of producing methane-enriched natural gas using an anaerobic digester and RW-EDI apparatus.    Biomass inlet (1)    Anaerobic digester (2)    Biodigestate (3)    Supernatant (5)    Resin-wafer electrodeionization system (8, 12)    Natural gas outlet (9)    Bicarbonate stream outlet (10)