Surgical pathology is a branch of pathology that involves the examination of tissues removed from living patients during surgery to diagnose diseases and determine the extent of a condition. Pathologists analyze specimens obtained through surgical procedures to provide crucial information for treatment planning.