This research evaluates the possibility of using straight oils such as castor oil, which is not suitable for food use, and sunflower oil, used as a standard reference for waste cooking oils, in blends with gasoline as second-generation biofuels. To this end, a study of the rheological properties of biofuels obtained from these double blends has been carried out. The aim is to take advantage of the different properties of gasoline, i.e., its low viscosity and its high energy density to obtain blends whose rheological properties allow the substitution of fossil diesel in high extent. The incorporation of fossil diesel to these gasoline/oil mixtures produces diesel/gasoline/oil triple blends, which exhibited the suitable rheological properties to be able to operate in conventional diesel engines. Therefore, the behavior of these blends has been evaluated in a conventional diesel engine, operating as an electricity generator. The triple blends allow the substitution of fossil diesel up to 40% with sunflower oil, and up to 25% with castor oil, with excellent power results achieved for blends in which diesel is substituted up to 40%, and also in fuel consumption at high demand in comparison to conventional fossil diesel. Besides, a significant reduction in the emission of pollutants has also been obtained with these triple blends.