Liver cancer is not contagious before the death of liver cancer patients. Liver cancer mostly occurs on the basis of cirrhosis, especially viral cirrhosis, such as hepatitis B cirrhosis and hepatitis C cirrhosis. Hepatitis B and C cirrhosis are not transmitted through fecal-oral route, that is, they are not transmitted when eating together. They are mainly transmitted through blood transfusion, sexual contact and mother-to-child transmission, and blood products are the main transmission route, so when contacting patients with hepatitis B and C, blood transmission should be prevented, while they will not be transmitted through diet and gathering. The main prevention and treatment of liver cancer is to actively treat inflammation, that is, patients with hepatitis B and C should actively carry out antiviral treatment. If patients have active viral infection and active inflammation, antiviral treatment can play a better role. There are also a few patients with alcoholic cirrhosis who have metastatic liver cancer, and it is also very helpful to stop drinking. In addition, patients with autoimmune liver disease and primary cholestatic cirrhosis are also at risk of liver cancer and should be reviewed and actively monitored regularly. If the lesion is early, the prognosis is relatively good.