Inflammatory bowel disease (IBD) can present with abdominal pain and bloody diarrhea. A thorough history, examination, blood tests, endoscopy, and imaging are used to diagnose IBD and distinguish between Crohn's disease and ulcerative colitis. Crohn's disease can affect any part of the gastrointestinal tract and is characterized by patchy inflammation and deeper ulcers, while ulcerative colitis causes continuous inflammation of the colon. Treatment involves medications to reduce inflammation and manage symptoms.