Endoscopic plastic biliary stenting has been used for more than 30 years as a temporary or definitive treatment of benign and malignant neoplasms. These stents are commonly available, inexpensive, and easy to implant. We aimed to evaluate the duration of plastic stent patency, to assess complications associated with stent use, and to determine the optimal timing of stent replacement depending on the indication for biliary stenting. This was a retrospective cohort study with a 5‑year follow‑up including patients who underwent plastic biliary stent implantation between 2012 and 2013 in a tertiary referral gastroenterological center. The performance of stents was assessed on the basis of medical records, direct contact with patients or their family members, and information derived from the national death registry. We assessed 830 biliary stenting procedures performed in 346 patients. The indications for biliary stenting included choledocholithiasis in 120 patients (34.7%), benign stricture in 70 patients (20.2%), and malignant stricture in 156 patients (45.1%). The mean duration of stent patency for these conditions was 110, 106, and 55 days, respectively (P <0.001). Stents implanted for malignant perihilar strictures had a shorter duration of patency than those used for distal strictures (40 days vs 76 days, P = 0.002). The patency of plastic stents depends on the underlying disease. In patients with benign biliary disease, stent replacement is recommended after about 3.5 months. In patients with cancer, the timing of stent replacement should be guided by survival prognosis and location of stricture.