The motion of a thin liquid film of viscous incompressible fluid on the horizontal surface in the presence of a magnetizable surfactant on the free boundary in the external inhomogeneous magnetic field is investigated. Surfactant diffusion along the free surface and the dependence of the surface tension on the magnetic field strength are taken into account. The system of evolutionary equations is derived in the lubricant approximation and steady-state film flows and their stability in the case of constant film thickness and constant surfactant number density are investigated with regard to the Marangoni effect.