In most cases of biliary obstruction, the standard treatment involves utilising an endoscope during a procedure called endoscopic retrograde cholangiopancreatography (ERCP) to remove the blockage. However, in more severe instances, surgery may be necessary to eliminate the obstruction and occasionally remove the gallbladder. If the underlying cause of the obstruction is cancer-related, it often involves procedures to widen and drain the ducts.