Melena can be a symptom of various types of cancer, particularly those affecting the gastrointestinal tract. These cancers include but are not limited to esophageal cancer, gastric (stomach) cancer, and colorectal cancer. The presence of melena often signifies that the cancer has caused bleeding within the digestive system.