Biodiesel—which can be prepared from vegetable oil, animal fats, used cooking oil, or microalgae—is a potential replacement or extender for petroleum-based diesel fuel.