An acid corrosion inhibitor is prepared by a 2-stage vacuum evaporation of effluents obtained from the ammonia columns of the coking oven plant. The effluent, leaving a scrubber in which the phenols are removed at a temperature of 98$C, passes through a quartz filter and flows into a heated chamber in which it is used for preheating a solution circulating through a vacuum unit, maintaining the temperature of the solution at 55$ to 60$C. The effluent enters a large tank in which it is boiled at 55$ to 60$C under 635 to 640 mm Hg pressure. Double evaporation of this solution yields a very effective acid corrosion inhibitor. Its corrosion-preventing effect is 97.9% compared with 90.1% for thiourea and 88.5% for urotropin under identical conditions.