Diazepam is sometimes used for other reasons too. It is given as a pre-med to reduce anxiety before an operation, particularly during procedures that may cause anxiety or discomfort. It is occasionally used to treat muscle spasm, and also to treat fits caused by epilepsy or fever. Rectal diazepam tubes may be prescribed for this, as they are useful if a quick effect is needed or if it is not possible to give the medicine by mouth.