The main function of the liver is to secrete substances that help in the breaking down of fats, convert glucose to glycogen, produce urea, amino acids and filter harmful substances like alcohol from blood. The liver is also responsible for producing 80% of cholesterol in our body.