Peritonitis is an infection (or an inflammation) of the peritoneum, which is a two-layered membrane covering both the surfaces of the organs that lie in the abdominal cavity and the inner surface of the abdominal cavity itself.