Transanal drainage tube (TDT) is used to prevent anastomotic leakage after surgery for rectal cancer. However, it remains unclear whether intraoperative TDT placement is also useful in preventing anastomotic leakage after ileal pouch-anal or ileal pouch-anal canal anastomosis (IPAA) in patients with ulcerative colitis (UC). This study aimed to evaluate the efficacy of intraoperative TDT placement in preventing anastomotic leakage after IPAA in patients with UC. Patients with UC who underwent proctectomy with IPAA in the study institution between January 2000 and December 2021 were enrolled in this retrospective cohort study. The relationship between TDT placement and anastomotic leakage was evaluated by logistic regression analysis. The study population included 168 patients. TDT was placed intraoperatively in 103 of the 168 patients (61.3%). The rate of anastomotic leakage was significantly lower in the TDT group than in the non-TDT group (7.8% vs 18.5%, p = 0.037). Reoperation was not needed in any patient in the TDT group whereas two reoperations were necessary in the non-TDT group (3.1%). By logistic regression analysis, intraoperative TDT placement was an independent protective factor for anastomotic leakage. TDT placement was significantly associated with anastomotic leakage of IPAA in patients with UC undergoing surgery. Although two-stage surgery with ileostomy is usually preferred in UC surgery, our findings suggest that TDT placement might contribute to the improvement of postoperative outcomes after UC surgery.