Peritonitis is inflammation of the peritoneum — a silk-like membrane that lines your inner abdominal wall and covers the organs within your abdomen — that is usually due to a bacterial or fungal infection. There are two types of peritonitis: Spontaneous bacterial peritonitis.