Mercaptopurine is a medication used to treat certain types of cancer and autoimmune diseases. However, during the manufacturing process, impurities can be formed which may lead to potential health risks for patients. These impurities include oxidation products, degradants, and residual solvents. Testing and control measures must be implemented to ensure the purity and safety of the medication.