The tail gas from the urea synthesis plant is rendered non-explosive by adding thereto a purge gas that is obtained from the ammonia synthesis plant and used for synthesis of ammonia. The purge gas contains hydrogen and nitrogen. The non-explosivity is reached by diluting the tail gas until the oxygen content is lower than 4%.