The present application relates to compounds with dual effects on both sigma receptor (s) and opioid receptor (m), in particular diazopropyldiazepine compounds with such effects, the preparation process of such compounds, the synthesis and use of drugs containing such compounds. In treatment, especially pain treatment. 1. Claim 1: a general formula compound (1),Where y is a formula compound (2),(3) (4)N is 1 or 2, q is 1, 2, 3, 4, 5 or 6, X is a link,-C (o) 831222 -,-C (O) --O- o -C (R R) -R es C (O) R o S (O) RR² is substituted or unsubstituted C₁₋₆ alkyl, substituted or unsubstituted C₂₋₆ alkenyl, substituted or unsubstituted C₂₋₆ alkynyl, substituted or unsubstituted cycloalkyl, substituted or unsubstituted aryl, or substituted or unsubstituted heterocyclyl; where cycloalkyl aryl or heterocyclyl if substituted, are substituted by substituents selected from halogen, -R⁹,-Or8313,-No.8322;8313; 8313;No. 8313; C (o) r8313;-No. 8313; (s (o) 8322; r8313;-S (O) NR R-No. 8313; C (o) No. 8313; r8313;-SR8313,-S (O) RS (O) R-CN haloalquilo haloalcoxi -C (O) OR-C (o) No. 8313; r8313 -,=O -, oc8322;, ch8322; - Oh, nr8313;; s (o) 8322;; nr8313;R³ and R³ are independently selected from hydrogen, substituted or unsubstituted C₁₋₆ alkyl, substituted or unsubstituted C₂₋₆ alkenyl, substituted or unsubstituted C₂₋₆ alkynyl, substituted or unsubstituted cycloalkyl, substituted or unsubstituted heterocyclyl, substituted alkylcycloalkyl or unsubstituted, substituted or unsubstituted alkylheterocyclyl, substituted or unsubstituted aryl, substituted or unsubstituted alkylaryl, where cycloalkyl, heterocyclyl or aryl if also substituted in alkylaryl, alkylcycloalkyl or alkylheterocyclyl, are substituted by substituents selected from halogen, -R⁹,Y-Or8313;R830808 is hydrogen, r831222,C₁₋₆ substituted or unsubstituted alkyl, C₂₋₆ substituted or unsubstituted alkenyl, C₂₋₆ substituted or unsubstituted alkynyl, -C (O) OR⁹,-C (o) No. 8313; r8313,-No. 8313; (c) r8313,8313; 8313;unsubstituted he