The present invention relates to the field of pharmaceutical chemistry, and in particular, to a novel class of azole compounds represented by general formula (I), (II) or (III) and a preparation method thereof, a pharmaceutical composition with the compounds as active components, and a use of the azole compounds and the pharmaceutical composition in the preparation of a medicament for treatment of diseases associated with Lp-PLA2 enzyme activities, wherein each substituent is as defined in the specification.