In World War II, German scientists created methadone to counteract a morphine shortage. The drug (Dolophine) was first prescribed for pain relief in the United States in 1947. It was first used to counteract drug addiction in New York as part of an opioid treatment program during the 1960s.