This invention describes the separation of carbon dioxide from ammonia in the process of producing melamine.  The gasses are separated by absorption to ethylene glycol or dimethylformamide.