Using the structural-parametric approach, of which the three-dimensional method of S ‒ approximations is a part, we carried out a series of experiments where we approximated the known measured components of the magnetic field by the sum of simple and double layers distributed on two carriers of magnetic masses equivalent in the external field. We obtain data of measurements of the magnetic field of Mars by the magnetometer of the MAVEN station from the PPI PDS public website. Based on samples of satellite measurements from large data arrays on arbitrary grids according to various criteria, models of the Martian magnetic field were constructed using a modified method of S‒approximations at satellite heights and on the planet’s surface in the areas of operation of the InSight and the Tianwen‒1 missions.