This document describes glyoxalidine corrosion inhibitors for use in hydrocarbon liquids like gasoline and diesel fuel. Specifically, it describes new chemical compounds that are salts of a glyoxalidine and an organic aliphatic dicarboxylic acid with at least 10 carbon atoms. These compounds are effective corrosion inhibitors for ferrous metals in contact with hydrocarbon liquids that contain small amounts of water. Test results show that reactions products of sebacic acid and certain glyoxalidines can inhibit corrosion in gasoline-water systems at low concentrations.