Based on a single-fluid MHD model, this paper has studied the global magnetic field structure in the near-Mars space, and investigated the influence of the Martian crustal magnetic fields on the magnetic field structure. Mars bow shock, Magnetic Pileup Region are produced when the solar wind flows over Mars. The interplanetary magnetic field lines are curved and `draping' around the planet. The majority of magnetic field lines bypass over two poles, leaving `V shaped' structure in the wake behind Mars. Near the surface of Mars, the local crustal magnetic fields also have noticeable influence on the magnetic field structure. The crustal magnetic fields at different positions, with different intensities form the dissimilar magnetic filed structure and mini-magnetospheres when interacting with the solar wind. The towed mini-magnetosphere and the mini-magnetosphere with open magnetic lines are illustrated in the paper. The local crustal magnetic fields change the morphology of the magnetic field, and accordingly may play an important role in determining the plasma distribution.