New functionally substituted polyammonium compounds that involve polar oxygen-containing fragments have been synthesized. It has been found that these compounds, which are introduced into epoxy polymers, are hydrophilizing agents that decrease the deposition of asphaltene-resin-paraffin substances from oil on the polymer surface.