While both are inflammatory bowel diseases, ulcerative colitis affects only the innermost lining of the colon and rectum, whereas Crohn's can impact any part of the digestive tract.