The present invention relates to thiazole compounds of formula I , the method for preparation and use thereof. More specifically, the present invention relates to novel derivatives of natural product largazole, the method for preparing them and their uses for treatments against tumor and multiple sclerosis as inhibitors of histone deacetylase.