Kratom is used as an alternative to opioids, most commonly to treat pain or as a substitute for street drugs. The herb, formally known as Mitrogyna speciosa, has a centuries-long history of use in herbal medicine in Southeast Asia—notably as a substitute for opium.