This is the oxazazaspiric compound with pharmacological activity to the sigma (s) receptor,a. The preparation process of these compounds, the drugs containing these compounds and their use in treatment, especially for pain treatment. 1. Claim 1: a general formula compound (1),R1 is an equation compound (2) or (3);M is 1, 2, 3, 4 or 5; n is 0, 1, 2, 3, 4 or 5; P is 0, 1 or 2; and es-ch-8322-o-c (o));X is a link, - C (r739; - r739 '),- that is...-C (O) --C (o) 8311 -,-No. 8311; (c) (o) - O-C (o) O -;Where r739 is selected from the halogen,C₁₋₆ substituted or unsubstituted alkyl, C₂₋₆ substituted or unsubstituted alkenyl and C₂₋₆ substituted or unsubstituted alkynyl; Rˣ ’is selected from hydrogen, halogen, substituted or unsubstituted C₁₋₆ alkyl, substituted or unsubstituted C₂₋₆ alkenyl and substituted or unsubstituted C₂₋₆ alkynyl; R⁷ is selected from hydrogen, substituted or unsubstituted C₁₋₆ alkyl, substituted or unsubstituted C₂₋₆ alkenyl and substituted or unsubstituted C₂₋₆ alkynyl; R¹ ’is selected from substituted or unsubstituted C₁₋₆ alkyl, substituted or unsubstituted C₂₋₆ alkenyl, substituted or unsubstituted C₂₋₆ alkynyl,substituted or unsubstituted cycloalkyl, substituted or unsubstituted aryl and substituted or unsubstituted heterocyclyl; R² is 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 aryl and substituted or unsubstituted heterocyclyl ; 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 alkylcycloalkyl, substituted or unsubstituted alkylaryl, substituted or unsubstituted aryl, substituted or unsubstituted heterocyclyl, or substituted or unsubstituted alkylheterocyclyl; alternatively