本發明係有關於一種如下式(I)之噻吩化合物。該式(I)中之每一官能基分別定義於說明書中。該些化合物可用於治療大麻素受體相關疾病。This invention relates to thiophene compounds of formula (I) shown below. Each variable in formula (I) is defined in the specification. These compounds can be used to treat cannabinoid-receptor mediated disorders.