Biofuels are of three types: gas, liquid, and solid. Amongst these, the liquids are used as fuel for vehicles, of which the two most common ones are ethanol, a substitute for petrol, which is made from grain, sugar, or corn, and biodiesel, produced from oil seeds.