Peritonitis is inflammation of the peritoneum lining the abdominal cavity. There are several types depending on cause, including primary, secondary, and tertiary peritonitis. Primary peritonitis includes spontaneous bacterial peritonitis which occurs in those with cirrhosis and ascites. Secondary peritonitis results from infection spreading from a ruptured organ. Tertiary peritonitis is persistent or recurrent infection after source control of secondary peritonitis. Diagnosis involves ascitic fluid analysis and treatment involves antibiotics.