First, the rectum contracts as it fills up with stools. This causes the smooth muscle of the anal canal to relax. The puborectalis muscle, which loops around the rectum like a sling, normally pulls the rectum forward to create a tight angle – known as the anorectal angle.