Peritonitis is an inflammation of the peritoneum, the thin layer of tissue that lines the inside of the abdomen and covers most of the abdominal organs. This condition can be life-threatening if not treated promptly, and it often requires immediate medical attention.