Nitrate esters are typically prepared by condensation of nitric acid and the alcohol:  For example, the simplest nitrate ester, methyl nitrate, is formed by reaction of methanol and nitric acid in the presence of sulfuric acid:
Formation of a nitrate ester is called a nitrooxylation (less commonly, nitroxylation).