The liver plays a vital role in digestion by producing bile, which is stored in the gallbladder and released into the small intestine when needed. Bile helps break down fats into smaller droplets, making them easier to digest and absorb.