Understanding the macrosegregation formed by applying magnetic fields is of high commercial importance. This work investigates how static magnetic fields control the solute and primary phase distributions in four directionally solidified alloys (i.e., Al-Cu, Al-Si, Al-Ni and Zn-Cu alloys). Experimental results demonstrate that significant axial macrosegregation of the solute and primary phases (i.e., Al2Cu, Si, Al3Ni and Zn5Cu phases) occurs at the initial solidification stage of the samples. This finding is accompanied by two interface transitions in the mushy zone: quasi planar → sloping → quasi planar. The amplitude of the macrosegregation of the primary phases under the magnetic field is related to the magnetic field intensity, temperature gradient and growth speed. The corresponding numerical simulations present a unidirectional thermoelectric (TE) magnetic convection pattern in the mushy zone as a consequence of the interaction between the magnetic field and TE current. Furthermore, a model is proposed to explain the peculiar macrosegregation phenomenon by considering the effect of the forced TE magnetic convection on the solute distribution. The present study not only offers a new approach to control the solute distribution by applying a static magnetic field but also facilitates the understanding of crystal growth in the solute that is controlled by the static magnetic field during directional solidification.