Biodiesel is diesel fuel made from biomass rather than petroleum (petrodiesel). It’s used primarily in transportation, but it can also be used for home heating, electricity generation, and other uses.