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