Nonane and decane diazabicyclic derivatives having homopiperazine as main ring, having affinity for the opioidergic µ and/or ´ and/or k receptors and/or for all their receptorial subclasses, with central and/or peripheral activity, having formula (I), the isomeric forms and their mixtures included, wherein one or more atoms are in the corresponding isotopic forms: wherein: - n is an integer equal to 1 or 2; - one of the substituents R and R 1 of the nitrogen atoms of the diazabicyclic ring is a -C(O)-R B group, wherein R B is a C 1 -C 10 alkyl group, linear or branched when possible, - the other remained substituent of R and R 1 has the meanings reported in the description.