In situ high-temperature laser scanning confocal microscopy is applied to study solidification cracking in a TRIP steel. Solidification cracking was observed in the interdendritic region during the last stage of solidification. Atom probe tomography revealed notable enrichment of phosphorus in the last remaining liquid. Phase field simulations also confirm phosphorus enrichment leading to severe undercooling of more than 160 K in the interdendritic region. In the presence of tensile stress, an opening at the interdendritic region is difficult to fill with the remaining liquid due to low permeability and high viscosity, resulting in solidification cracking.