In this paper, modern methods of protecting oil and gas equipment from corrosion are considered. The types of corrosion and their characteristics are listed. The features of the operating conditions of oilfield equipment are described. The damage caused by corrosion is shown. The methods of protection of equipment from corrosion, their features, advantages and disadvantages are given. used to minimize, control and monitor corrosion. The article presents an algorithm of actions to combat corrosion. Possible ways to solve the problem of corrosion by using online corrosion monitoring using interactive ultrasonic thickness sensors are presented.