The present invention relates to new substituted pyrazolo [3,4-d]pyrimidine compounds of general formula (I), having a great affinity for sigma receptors, especially sigma-1 receptor, as well as to the process for the preparation thereof, to compositions comprising them, and to their use as medicaments for the treatment of i.a. pain.n is selected from 1, 2, 3 or 4; R1 represents a carbon-linked optionally substituted aryl or heteroaryl radical; R2 and R3 independently represent a hydrogen atom, an optionally substituted aliphatic, cycloalkyl, cycloalkylalkyl, aryl, arylalkyl, heteroaryl, heteroarylalkyl, heterocyclyl or heterocyclylalkyl radical, or R2 and R3 together with the bridging nitrogen form an optionally substituted heterocyclyl or heteroaryl radical.