The invention relates to the technical field of
medicine preparation, in particular to a method for preparing a
nitrosamine compound. The method comprises the following steps: S1, carrying out esterification protection by taking a
dalbavancin precursor A-40926-B0 as a
raw material to obtain an intermediate I; s2, carrying out
condensation reaction on the intermediate I and 3-methylaminopropylamine to obtain an intermediate II, and carrying out
alkaline hydrolysis to obtain an intermediate III; s3, protecting secondary amine on a parent
nucleus of the intermediate III through a protective
reagent to obtain an intermediate IV; s4, carrying out
nitrosation on the intermediate IV through a
nitrosation reagent to obtain an intermediate V; s5, after the intermediate V is subjected to deprotection,
dalbavancin demethylated B0
nitrosamine is obtained; the product prepared by the method is high in purity, a reference substance can be provided for
quality control of
dalbavancin, and important guiding significance is provided for safe medication.