a method of producing biodiesel through the trans - esterification of a triglyceride , comprising mixing a triglyceride , an alcohol , and a catalyst to form a mixture , where said catalyst is non - metal quaternary ammonium hydroxide or non - metal quaternary phosphonium hydroxide , removing volatile components from said mixture , and allowing the remaining mixture to separate into a biodiesel - rich layer and a glycerol - rich layer .