Detoxification is a critical component of the rehabilitation process. It involves the safe removal of toxins from the body under medical supervision. This stage may last from a few days to several weeks, depending on the substance and the individual's health. Medications may be used to alleviate withdrawal symptoms and prevent complications. The goal is to stabilize the patient and prepare them for further treatment.