Muscle relaxants are medications used to relieve muscle spasms, which are involuntary contractions of a muscle or group of muscles. These drugs can be beneficial in various medical conditions, including cancer, where patients often experience pain and discomfort due to the disease or its treatment.