In this study, researchers want to compare two methods for helping patients who have had surgery for **rectal cancer**. After removing the cancer, some patients are at high risk of **anastomotic leakage**, which is when the connection made in the intestines leaks. To prevent this, doctors can use a **stent-based diverting technique (SDT)** or an **ileostomy**, which is an opening made in the belly to let waste out. This study will see if SDT is safer and more effective than ileostomy, by looking at any serious problems in the first 90 days after surgery. They will also check how long patients stay in the hospital, how much it costs, and the patients' quality of life after surgery.
- Study lasts about 3 months with follow-up visits.
- No cost for participants; may reduce hospital stays and costs.
- Participants need to be over 18 and under 80 years.