The liver produces bile which emulsifies (separates) fat.
As part of digestion, the liver produces bile which breaks down:
fat
sugars
starches
protein