Appendicitis is caused by an obstruction in the lining of the appendix, which leads to infection. The bacteria multiply quickly, inflaming, swelling, and filling the appendix with pus. This causes the appendix to burst.