The present invention relates to production and utilization of renewable fuel containing as its main ingredient fatty acid methylesters (FAME). The main by-product of production of such fuel is glycerol. The objective of the invention has been achieved by reaction of rapeseed oil with methyl formate using potassium tertbutoxide solution in tert-butanol or tetrahydrofuran as catalyst.