A process of preparing sulfur-containing compositions which comprises reacting hexahydrotriazines, or the precursors thereof, with sulfur or sulfur-containing compounds. The products of the reaction are useful as corrosion inhibitors. Additionally, ketones or the reaction products of ketones and ammonia are reacted with sulfur or sulfur- containing compounds to yield corrosion inhibitors.
展开▼