The pyloric sphincter is compose of smooth muscle and is located between the pylorus in the stomach and duodenum of the small intestine. In digestion, it serves as a valve controlling the flow of food thus it prevents the contents of small intestine backing up into the stomach.