The invention relates to compounds having pharmacological activity towards the sigma receptor, and more particularly to indazole derivatives of formula Iand to processes of preparation of such compounds, to pharmaceutical compositions comprising them, and to their use therapy and/or prophylaxis, in particular for the treatment of psychosis or pain.