This document discusses haematemesis and melaena, which refer to vomiting and passing black stool containing blood from upper gastrointestinal bleeding. Haematemesis involves vomiting bright red or dark blood, while melaena involves black tarry stool due to blood degradation. Common causes of upper GI bleeding include peptic ulcers and esophageal varices. Initial treatment involves stabilization, risk assessment, and upper endoscopy to determine the source of bleeding. Endoscopic therapies like clips, cautery, and injections can control active or recent bleeding. Ongoing intravenous PPIs after endoscopy may prevent rebleeding. Surgery is considered if bleeding persists despite endoscopic treatment. Long-term prevention involves lifestyle changes and maintenance P