The present invention relates to the new use of antiparasitic agents, such as ivermectin, abamectin/avermectin, doramectin and so on, and the design method of the derivatives for the new use. The said compounds including macrolide abamectin/avermectin, ivermectin, doramectin and the derivatives thereof, may be used in the manufacture of a medicament for use in treating metabolic related diseases in a mammal, such as hyperglycemia, insulin resistance, hypertriglyceridemia, hypercholesterolemia, diabetes, obesity, etc, and Farnesoid X receptor mediated diseases, such as cholestasia, gallstone, non alcohol fatty liver disease, atherosclerosis, inflammation, cancer, etc