【Objective】 To evaluate the clinical value of ileostomy via indwelling catheter in terminal ileum to prevent anastomotic leakage after anterior resection of the rectum. 【Methods】 64 cases of patients underwent laparoscopic/open anterior resection of the rectum, a balloon endotracheal tube was placed in the terminal ileum for ileostomy after completion of the terminal colorectal anastomosis and fixed properly. Then the intestinal transit function and the occurrence rate of anastomotic leakage were observed after operation. 【Results】 All groups of patients'intestinal transit function was well and no intestinal obstruction was observed. One case of anastomotic leakage occurred with recovery shortly after conservative treatment. No fecal leakage or peritonitis occurred after extubation. The patients could start taking food early after operation and their recovery was satisfying. 【Conclusion】 Ileostomy via indwelling catheter in terminal ileum was simple and practical. It is an effective prevention and treatment for the occurrence of anastomotic leakage after anterior resection of the rectum which could exempt patients from resurgery for repositioning the bowels.