The anal sphincter is made up of 2 sets of muscles called the "internal" and "external" sphincters. These muscles form a ring around the anus. When these muscles are working normally, they squeeze the anus shut so that gas and bowel movements cannot leak out.