Dantrolene is a muscle relaxant primarily used to treat muscle spasticity and conditions like malignant hyperthermia. It works by interfering with the release of calcium ions from the sarcoplasmic reticulum in muscle cells, thereby reducing muscle contractions.