The present invention relates to low-toxicity biodegradable compounds that inhibit metal corrosion, said compounds being salts obtained through the reaction of a carboxylic diacid with an imidazoline derivative. The invention also relates to the use of said corrosion-inhibiting compounds in all types of industries for drilling ore or fossil compounds, such as gas or oil.