The placement of a tube into the rectum for various medical purposes, such as administering medication or removing stool.