The invention relates to compounds acting as selective antagonists of Transient Receptor Potential cation channel subfamily M member 8 (TRPM8), and having formula:Said compounds are useful in the treatment of diseases associated with activity of TRPM8 such as pain, inflammation, ischaemia, neurodegeneration, stroke, psychiatric disorders, inflammatory conditions and urological disorders.