The invention relates to compounds of formula (I) or formula (II) having pharmacological activity towards the sigma receptor, for use in the treatment or prevention of osteoarthritis and pain due to osteoarthritis.本發明係關於式(I)或式(II)化合物:其具有針對西格馬受體之藥理學活性,用於治療或預防骨關節炎及因骨關節炎所致之疼痛。