An innovative technology for desulfurization of hydrocarbon raw materials, based on the effect of a rotating electromagnetic field of high power and ferromagnetic nanoparticles located in the working area of the device on oil or fuel oil, has been developed and implemented on a pilot scale. The basis of the technology is the device named “electromagnetic process activator”, which is based on the principle of converting the energy of the electromagnetic field into other types of energy. The reduction of sulfur in oil by 2.5 times and fuel oil by 3 times was achieved at energy costs of up to 1.0 kW per ton of processed raw materials, which allows us to conclude that the developed technology is highly efficient and productive.