This compound can be obtained by two different ways: 1) The oxidation of 9-deoxo-9a-aza-9a-homoerythromycin A (I) with 30% H2O2 in methanol gives the N-hydroxy-9-deoxo-9a-aza-9a-homoerythromycin A N'-oxide (II), which is methylated with ICH3 and K2CO3 in dichloromethane to afford N-methyl-9-deoxo-9a-aza-9a-homoerythromycin A bis(N-oxide) (III). Finally, this compound is reduced with H2 over Pd/C in ethanol. 2) By methylation of 9-deoxo-9a-aza-9a-homoerythromycin A (I) with formaldehyde and formic acid in CHCl3.