Organic and inorganic impurities can arise during the manufacturing of drugs from starting materials, byproducts, intermediates, degradation products, reagents, and catalysts used in synthesis. Impurities may also come from defects in manufacturing processes, the solvents, raw materials, and storage conditions used. Proper purification and control of synthesis conditions are needed to minimize impurities and ensure drug safety and efficacy.