Inflammation caused by Crohn's disease can affect the whole gastrointestinal tract, whereas ulcerative colitis only affects the colon.