Bismuth subsalicylate is a medication commonly used to treat temporary discomforts of the stomach and gastrointestinal tract, such as diarrhea, heartburn, and nausea. It has antimicrobial properties that make it useful in managing certain bacterial infections.