Upper gastrointestinal bleeding remains a common medical emergency with high morbidity and mortality. High risk patients are best managed in specialised units. Endoscopy is the procedure of choice for diagnosis and haemostatic therapy of peptic ulcers, reducing deaths and the probability of rebleeding, as well as the need for surgery; for acute variceal bleeding, pharmacotherapy followed by endoscopic ligation is recommended.