This document discusses upper gastrointestinal bleeding (UGIB). It defines UGIB as bleeding from the gastrointestinal tract proximal to the ligament of Trietz, which usually manifests as hematemesis or melena and sometimes hematochezia. Risk stratification systems like the Blatchford and Rockall scores are used to predict outcomes like rebleeding and mortality. Endoscopy is important for diagnosis, prognosis, and potential therapy. Management involves fluid resuscitation, identifying the bleeding source, stopping active bleeding, treating underlying causes, and preventing rebleed. Proton pump inhibitors are the standard medical treatment. Endoscopic modalities like injection, thermal, and mechanical methods are used for non-variceal bleeding.