Gabapentin is a muscle relaxant. Baclofen, however, is a muscle relaxant used to treat spasms in the skeletal muscle, muscle clonus, or muscle rigidity. It can also be used to treat pain caused by multiple sclerosis.