The invention relates to compounds acting as selective antagonists of Transient Receptor Potential cation channel subfamily M member 8 (TRPM8), and having formula (I). Said compounds are useful in the treatment of diseases associated with activity of TRPM8 such as pain, inflammation, ischaemia, neurodegeneration, stroke, psychiatric disorders, itch, irritable bowel diseases, cold induced and/or exhacerbated respiratory disorders and urological disorders.