The most common medications to treat the condition include the muscle relaxants baclofen (Gablofen, Kemstro, Lioresal) and tizanidine (Zanaflex). Another option is diazepam (Valium), which can help you sleep if nighttime spasms keep you awake. If pills don’t work, your doctor might be able to put a pump inside your body to deliver the medication directly to your spinal fluid (such as the baclofen pump). You can also get shots of botulinum toxin (such as Botox or Myobloc) to relax your muscles.