Optimization of the metal solidification microstructure is a long-standing topic. It is the initial and critical guarantee of fabricating high performance metal materials, especially in the context of external field control, for example, for electromagnetic fields. However, tailoring the final solidification microstructure is extremely difficult because its mechanism is a long process inheritance chain which can be hardly observed by experiments. In this study, systematically simulations of the continuous casting using an electromagnetic swirling flow nozzle (EMSFN) was made to clarify this inheritance chain. It was newly found that a relatively uniform flow field inherited from a magnetic field generates a gradient impediment-flow optimization mechanism (GIFO), which is beneficial for both columnar-to-equiaxed transition (CET) and grain refinement. Specifically, 600 A increases the superheat dissipation, and the temperatures of the solidification front at 200 mm and 400 mm below the meniscus are increased by 15.47 K and 12.27 K, respectively, and the temperature gradient is decreased by 17.3 % and 22.8 %. The concentration gradient at the solidification front decreased by 89.9 %, 31.1 %, and 51.3 % at 200 mm, 400 mm, and 650 mm below the meniscus, respectively. Coupled changes in the temperature and concentration gradients impede dendritic growth and promote equiaxed grain nucleation. In addition, more equiaxed grain nuclei are transported to the forefront of the growing dendrite when the molten steel rotates and is transported from the inner to the outer regions. According to the simulation, the experimental validation proved that electromagnetic swirling flow nozzle was a convenient method for promoting this mechanism. It can optimize the solidification structure of Grade 70 carbon spring steel continuous casting billets with an increase of 21.26 % in the equiaxed grain ratio extremely low carbon segregation, and improved mechanical properties. This newly found mechanism can be considered as a generic theory for optimizing the solidification microstructure of alloys, which can guide the process design of various external field control technology.