Process for the preparation of urea ammonia and carbon dioxide, wherein the waste gases released at virtually atmospheric pressure in a urea plant arccompressed by an ejector driven by the waste gas from the high-pressure synthesis and are supplied to a medium-pressure absorber. The pressure of the waste gases is increased by 0.15-1 MPa.