Methadone is a synthetic opioid that is commonly used for the treatment of opioid addiction and chronic pain. It is a full agonist, meaning it binds to opioid receptors in the brain and produces similar effects to other opioids, but in a controlled manner. It is typically used in medication-assisted treatment (MAT) programs to help individuals recover from opioid addiction, such as addiction to heroin or prescription painkillers.