If bile duct cancer blocks the normal flow of bile, bile can build up in the liver and cause jaundice, dark urine, itching, abnormal liver tests, and sometimes infection. In selected patients who are preparing for bile duct cancer surgery, doctors may recommend biliary drainage before the operation.
Biliary drainage is a procedure used to restore the flow of bile around or through a blockage. It can help address problems caused by biliary obstruction and, in certain situations, help prepare the liver and the patient for major surgery.
However, drainage before surgery is not necessary for everyone. The decision depends on factors such as the location of the tumor, the severity of jaundice, the presence of infection, the amount of liver expected to remain after surgery, and the overall treatment plan.
For a broader understanding of surgical treatment, see our Bile Duct Cancer Surgery guide.
What Is Biliary Drainage?
Bile is produced by the liver and normally travels through the bile ducts into the small intestine. A bile duct tumor can narrow or block this pathway, preventing bile from draining normally.
Biliary drainage creates or restores a pathway for bile to leave the liver. Depending on the location of the blockage and the patient's anatomy, this may be achieved using an endoscopic or percutaneous approach.
The goal is to relieve the obstruction while draining the appropriate part of the biliary system without interfering unnecessarily with the planned cancer surgery.

*AI-generated image - for illustration only. Clinical accuracy is not guaranteed.
Why Might Drainage Be Needed Before Surgery?
Not every patient with bile duct cancer needs biliary drainage before surgery. In some patients, immediate surgery may be possible without preoperative drainage.
Drainage may be considered when obstruction is causing problems that need to be addressed before a major operation. Situations in which it may be particularly useful include:
- Cholangitis: infection caused by obstruction of the bile ducts
- Severe or persistent jaundice
- Significant impairment of liver or kidney function associated with biliary obstruction
- Malnutrition related to prolonged biliary obstruction
- A planned treatment such as portal vein embolization before major liver resection
- A need for treatment before surgery, such as selected preoperative systemic therapy
- A relatively small amount of liver expected to remain after the planned resection
Why Is Biliary Drainage Especially Important in Some Liver Operations?
Some bile duct cancer operations involve removing a large portion of the liver. In these situations, surgeons need to ensure that the part of the liver that will remain after surgery—the future liver remnant—can function adequately.
If the ducts draining the future liver remnant are blocked, that portion of the liver may not function normally. Selective drainage of the future liver remnant may therefore be considered before surgery in appropriate patients.
This is particularly relevant in some cases of perihilar bile duct cancer, where the tumor is located close to the junction of the major bile ducts and a major liver resection may be required.
How Is Biliary Drainage Performed?
There are two commonly used approaches to establishing biliary drainage before surgery: endoscopic drainage and percutaneous transhepatic biliary drainage.
Endoscopic biliary drainage
Endoscopic drainage is usually performed during a procedure called endoscopic retrograde cholangiopancreatography (ERCP). A flexible endoscope is passed through the mouth and digestive tract until it reaches the opening of the bile duct in the small intestine.
Contrast imaging helps identify the biliary obstruction, and a small tube called a stent may be placed to allow bile to drain into the intestine.
Whether ERCP is appropriate depends on the location and pattern of the blockage. Complex tumors, particularly those near the liver hilum, may require a more carefully planned drainage approach.
Percutaneous transhepatic biliary drainage
In percutaneous transhepatic biliary drainage (PTBD), a thin catheter is inserted through the skin and into the liver's bile ducts using imaging guidance.
The catheter can provide a route for bile to drain either into the intestine or into an external drainage bag, depending on the specific procedure and anatomy.
PTBD may be considered when endoscopic drainage is not possible or when a more selective approach to draining particular parts of the liver is required.
Does Everyone With Jaundice Need Biliary Drainage Before Surgery?
No. The presence of jaundice does not automatically mean that a drainage procedure must be performed before surgery.
Preoperative biliary drainage has to be balanced against its potential benefits and risks. Unnecessary instrumentation of the bile ducts can cause complications, including infection, bleeding, catheter problems, or inflammation.
For some patients with resectable disease, adequate liver function, no cholangitis, and a suitable planned operation, the surgical team may decide that immediate surgery is more appropriate.
The decision should therefore be made after detailed imaging and surgical assessment rather than based on the bilirubin level alone.
Why Does Tumor Location Matter?
The location of the tumor can make biliary drainage more complex. With distal bile duct cancer, the obstruction is farther down the biliary system, and endoscopic drainage may often be considered.
With perihilar bile duct cancer, the tumor may involve the area where the major bile ducts divide as they leave the liver. In these cases, simply placing one stent may not provide adequate drainage of the liver that will remain after surgery.
Doctors therefore use detailed imaging to understand which ducts are obstructed and which part of the liver needs to be drained. The drainage plan should be coordinated with the intended surgical procedure.
Why Is Imaging Usually Done Before Drainage?
Detailed imaging helps the medical team understand the anatomy of the tumor before placing a stent or drainage catheter. Scans such as CT, MRI, or magnetic resonance cholangiopancreatography (MRCP) can help show:
- Where the tumor is located
- How far it extends along the bile ducts
- Which bile ducts are blocked
- Which blood vessels and organs are nearby
- Which portion of the liver is expected to remain after surgery

*AI-generated image - for illustration only. Clinical accuracy is not guaranteed.
This information helps the team plan drainage in a way that supports the overall surgical strategy.
What If There Is Cholangitis?
Cholangitis is an infection of the bile ducts that can occur when bile cannot drain properly. Symptoms can include fever, chills, abdominal discomfort, worsening jaundice, and feeling generally unwell. Cholangitis associated with biliary obstruction can become serious and requires prompt medical treatment.
When cholangitis is present, relieving the obstruction and establishing adequate bile drainage can be an important part of treatment. Antibiotics may also be required.
If you have been diagnosed with bile duct obstruction and develop fever, chills, worsening abdominal pain, or rapidly increasing jaundice, you should contact your medical team promptly.
How Long Before Surgery Is Drainage Performed?
There is no single waiting period that applies to everyone. The timing depends on why drainage was performed and how the patient responds afterward.
Doctors may want to see improvement in jaundice, liver function, infection, nutritional status, or other problems caused by biliary obstruction before proceeding with a major operation.
If additional preparation is needed before surgery—for example, portal vein embolization before an extensive liver resection—the overall treatment timeline may be longer. The surgical team will determine the appropriate timing based on the patient's response and the planned operation.
What Can You Expect After Biliary Drainage?
After drainage, doctors monitor whether bile is flowing adequately and whether the obstruction-related problems are improving.
You may have blood tests to monitor bilirubin and liver function. If an external drainage catheter has been placed, you will also receive instructions on caring for the catheter and drainage bag.

*AI-generated image - for illustration only. Clinical accuracy is not guaranteed.
Some patients experience improvement in jaundice, itching, or other symptoms after successful drainage. However, the response depends on how effectively the obstruction has been relieved and on the overall condition of the liver.
Can Biliary Drainage Cause Complications?
Like any medical procedure, biliary drainage has potential risks. These depend on the technique used and the patient's individual anatomy and condition. Possible complications include:
- Cholangitis or other infection
- Bleeding
- Pancreatitis after ERCP
- Stent blockage or displacement
- Catheter blockage or dislodgement
- Bile leakage
- Abdominal discomfort
- Need for repeat drainage or another procedure
Because of these potential risks, preoperative drainage is generally used selectively rather than automatically for every patient preparing for bile duct cancer surgery.
Can Drainage Affect the Timing or Type of Surgery?
Yes. Biliary drainage is part of the overall preoperative plan rather than a completely separate procedure. The drainage route and the ducts that are drained may need to be chosen according to the planned liver resection and the part of the liver that will remain.
In some patients, drainage is also coordinated with other procedures intended to make a major liver operation safer. This is why the surgical, endoscopy, interventional radiology, and oncology teams may need to coordinate the treatment plan before drainage is performed.
The Bottom Line
Biliary drainage before bile duct cancer surgery is not routine for every patient, but it can be an important part of preparation when bile flow is significantly blocked or specific surgical risk factors are present. The decision depends on the tumor's location, the severity of obstruction, the presence of cholangitis or other complications, the amount of liver expected to remain, and the overall surgical plan.
When drainage is needed, it may be performed through ERCP or a percutaneous approach. Particularly with tumors near the liver hilum, careful planning is important because the ducts that are drained need to be considered alongside the planned liver resection.
Because both the drainage procedure and the subsequent cancer surgery have their own risks, the best approach is an individualized plan developed by the specialists managing the patient's bile duct cancer.