Methacarbamol is a medication used as a muscle relaxant to treat muscle spasms and pain. It works by blocking nerve impulses that cause muscle contractions, thereby helping to relieve discomfort. It is typically prescribed for short-term use in combination with rest and physical therapy.