The present invention relates to new pyrazolo[3,4- d ]pyrimidine compounds having a great affinity for sigma receptors, especially sigma-1 receptors as well as to the process for the preparation thereof, to composition comprising them and to their use as medicaments.