The present invention relates to the use of an antagonist of the non-selective cation channel TRPM3 as a medicine for the treatment of pain. The present invention further relates to a method for identification of novel compounds for the treatment of pain, such as TRPM3-antagonists and compounds that modulate the activity or expression of TRPM3. The present invention relates to the use of TRPM3 antagonists as analgesics and the use of the compounds of this invention for the treatment of pain such as but not limited to inflammatory hyperalgesia.