In the context of cancer, gabapentin is often used to manage cancer-related pain, particularly neuropathic pain. This type of pain can result from the cancer itself or as a side effect of treatments like chemotherapy, radiation therapy, or surgery. Gabapentin can help improve the quality of life for cancer patients by reducing pain and discomfort.