This experiment used as raw materials, in feet cottonseed oil catalyst (NaOH), under the action of preparation by methanol ester exchange reaction phytosterols; Inspects the alcohol oil ratio, catalyst, reaction temperature and reaction time on the influence of phytosterols yield; Determine the cottonseed oil the ester exchange reaction for reaction conditions: alcohol oil than of 0.8:1 quality, 3g, catalyst reaction temperature 65 ℃, reaction time -- 68 with acetic acid neutralization after 3h, to soft, add 1:1 ethyl acetate, calcium salt, 40 to 60 4g ℃ reaction temperature, filtering, dry were obtained product. Experimental use biodiesel production of affiliate products were when secondary reactions, reduced the waste of resources, reduce the emissions of pollutants, protect environment.