pinworms are small parasites that can live in the colon and rectum you get them when you swallow their eggs the eggs hatch inside your intestines while you sleep the female pinworms leave the intestines through the anus and lay eggs on nearby skin