Peritonitis is a condition where the peritoneum becomes swollen. The peritoneum is a thin inner lining of the abdominal cavity. Peritonitis is usually caused by the development of a fungal or bacterial infection.