What does a sphincter muscle do?

A sphincter muscle is a ring-like muscle that opens and closes to control the passage of substances in and out of certain organs in the body. It helps regulate the flow of urine, feces, food, and other materials through the body's digestive, urinary, and reproductive systems.