Methocarbamol (generic Robaxin) is a muscle relaxer. Methocarbamol works by blocking nerve impulses (or pain sensations) that are sent to your brain.