Appendicitis occurs when the appendix becomes inflamed, often due to an obstruction or infection. Factors that may increase the risk include a family history of appendicitis, certain infections, or gastrointestinal issues. To prevent appendicitis, maintaining a diet rich in fiber and staying hydrated can be beneficial. If you suspect you have appendicitis, seek medical attention immediately, as it often requires surgical intervention.