本發明揭示式(I)之咪唑-4-酮或咪唑-4-硫酮化合物:其中,X、R1 、R2 、R3 、R4 、R5 及R6 如說明書所定義。亦揭示以該等化合物用於治療大麻鹼受體媒介之疾患的方法。Imidazol-4-one or imidazole-4-thione compounds of formula (I):wherein X, R1 , R2 , R3 , R4 , R5 , and R6 are defined herein. Also disclosed is a method for treating a cannabinoid receptor-mediated disorder with these compounds.