Melena is a medical term used to describe black, tarry stools that are typically indicative of gastrointestinal bleeding. The dark color and tarry consistency are due to the presence of digested blood, which has usually originated from the upper gastrointestinal tract, such as the esophagus, stomach, or duodenum.