Biodiesel has been a promising alternative clean fuel to fossil fuels, which reduces the emissions that are released by fossil fuels and possibly reduce the energy crisis caused by the exhaustion of petroleum resources in the near future. Biodiesel is replacing diesel as an alternative fuel for internal combustion engines. In this study biodiesel blend B20 and ULSD (B0) were combusted to investigate how the engine conditions influence the emission concentrations of H2, CO, CH4, CO2, N2 and morphological data of particulate matter. From our results under varied tested conditions we have incurred that, for low H2 emissions, B20 combustion under low temperatures and high pressures is preferred. For low CO emissions, B20 combustion under high temperatures and pressures is preferred. For low N2 emissions, ULSD combustion under low temperatures and high pressures is preferred. For low CH4 emissions, ULSD combustion under low temperatures and high pressures is preferred. For low CO2 emissions, ULSD combustion under low temperatures and low pressures is preferred.