Patients with liver cancer should firstly stop drinking alcohol, white wine and beer should not be consumed, do not eat too much greasy food and do not eat raw and cold brine to avoid intestinal infection. For patients with good liver function, they can eat foods with high protein and vitamins, and the intake of carbohydrates should be moderate, not too much; milk, eggs, lean meat, fish and tofu, fresh fruits and vegetables, especially green leafy vegetables are recommended. For patients with liver failure, especially jaundice, a light diet should be the mainstay, with adequate calories and appropriate protein supplementation, including rice soup, noodles and vegetables. For patients with cirrhosis, if liver cancer is to appear, they should also pay attention to eating soft, less crumbly, easily digestible food, such as noodles, minced meat, vermicelli, etc. Avoid eating hard crops like pancakes to avoid bleeding from the digestive tract. For patients with esophagogastric varices, they should also eat foods that contain coarser and more fiber, such as celery, lettuce and so on. In addition, coarse and indigestible foods, such as fried plants, should also be avoided. For patients with hepatic encephalopathy in liver failure, protein intake should also be limited to avoid aggravating the hepatic encephalopathy.