The pylorus is the part of the stomach that connects to the small intestine. It includes the pyloric sphincter, which is a thick ring of muscle that acts as a valve to control the emptying of stomach contents (chyme) into the duodenum (first part of the small intestine).