Lorlatinib is an anticancer drug used for the treatment of non-small cell lung cancer. However, during its manufacturing process, impurities can be formed that may impact its quality, safety, and efficacy. These impurities may include related substances or degradation products that need to be monitored, identified, and controlled. Therefore, strict quality control measures and analytical methods are necessary to ensure the purity, stability, and effectiveness of lorlatinib.