Methods of using gaboxadol or a pharmaceutically acceptable salt thereof and compositions of gaboxadol or a pharmaceutically acceptable salt thereof for use in treating a substance use disorder, preventing a substance use craving, diminishing a substance use craving, and/or facilitating substance use cessation are provided. Substance use disorders include alcohol use disorder, caffeine use disorder, cannabis use disorder, hallucinogen use disorder, inhalant use disorder, opioid use disorder, sedative use disorder, stimulant use disorder, tobacco use disorder and nicotine use disorder.