Biliary stents are commonly used in patients with cancers such as pancreatic cancer, cholangiocarcinoma (bile duct cancer), and hepatocellular carcinoma (liver cancer). These cancers can grow and compress or invade the bile ducts, causing an obstruction that leads to jaundice, liver dysfunction, and severe discomfort. By placing a stent, the blocked duct is opened, allowing bile to flow properly, which can alleviate symptoms and improve the patient's quality of life.