Soil characteristics play an important role in distribution of light non-aqueous phase liquid (LNAPL) spilled from buried pipeline, and enhanced understanding of distribution is significant to the effective design of soil and groundwater remediation strategies. Therefore, distribution of diesel in soils with different porosity and temperature on the temporal evolution of the diesel migration following the saturation profiles of the two-phase flow in soils were investigated in this study. The diffusion ranges, areas and volumes in both the radial as well as in axial directions of leaked diesel in soils with different porosity and temperature increased with time. Soil porosities played an important role in the distributions when soil temperatures had no effect on distributions of diesel in soils. The distribution areas were 0.385 m2, 0.294 m2, 0.213 m2, and 0.170 m2 at 60 min when the soils porosities were 0.1, 0.2, 0.3, and 0.4, respectively. The distribution volumes were 0.177 m3, 0.125 m3, 0.082 m3, 0.060 m3 at 60 min when the soils porosities were 0.1, 0.2, 0.3, and 0.4, respectively. But the distribution areas were 0.213 m2 at 60 min when the soil temperatures were 286.15 K, 296.15 K, 306.15 K and 316.15 K, respectively. The distribution volumes were 0.082 m3 at 60 min when the soil temperatures were 286.15 K, 296.15 K, 306.15 K and 316.15 K, respectively. The calculation formulas of distribution areas and volumes of diesel in soils with different porosity and temperature for developing prevention and control strategies in the future were fitted. The seepage velocities of diesel changed sharply around the leakage port and decreased from about 4.9 m/s to 0 within a few millimeters in soils with different porosity. Additionally, the diffusion ranges of leaked diesel in soils with different porosity were different, indicating that soil porosity had a significant impact on seepage velocities and pressures. The seepage velocities fields and pressures fields of diesel in soils with different temperature were same at the leakage velocity of 4.9 m/s. And the study could provide some supports for determination of the safety zone and formulation of emergency response plans for LNAPL leakage accidents.