This study provides a potentially viable approach to manipulate the precipitation of primary carbides in molten steel by modifying the diffusion coefficient of carbon. The solidification process of a Fe-C alloy is simulated using the multi-phase-field method, and we focus on the impact of diffusion coefficient of carbon on the solute segregation and cementite precipitation. Two benefits have been revealed as the ratio of the diffusivities of carbon in solid to that in liquid is increased. A potential advantage is the reduction in the volume fraction of the residual liquid enriched with carbon during the late solidification. Furthermore, the magnitude of the chemical driving force for the phase transition of cementite precipitation will be lower. The combined influence of both factors results in an exponential decrease in the volume fraction of cementite formed at the end of solidification.