In the present research article, we address the magnetically controlled thermal and solutal Marangoni convection in the flow of self-rewetting power-law liquid over a disk, in the existence of a space dependent heat source. The self re-wetting property of fluid is modelled by considering a quadratic dependence of surface tension on temperature and species concentration. The aforementioned problem is modelled by simplified Navier-Stokes equations. Identifying the appropriate transform variables is essential for developing ordinary differential equations from original partial differential equations that describe the flow conditions. The resulting ordinary differential equations are solved by using the bvp4c routine of MATLAB and numerical solutions are presented via Graphs and tables, illustrating the impact of several factors on fluid velocity, temperature, and concentration. Computation of the quantities of physical interest such as Nusselt and Sherwood numbers are also done from those numerical solutions. One of the key findings of present research work is that the Marangoni convection works differently for pseudo-plastic fluid and dilatant fluid.On increasing thermal Marangoni convection the temperature of dilatant fluid reaches a peak value much closer to the disk than temperature of pseudo plastic fluid.