Hepatocellular liver cancer and cholangiocellular liver cancer are not contagious, but some of the causes of hepatocellular liver cancer and cholangiocellular liver cancer may be contagious, such as hepatitis B and C viruses, which can be transmitted vertically through blood, sex, and from mother to child. Primary liver cancer is most commonly known as hepatocellular liver cancer, and the most common cause of hepatocellular liver cancer in China is the hepatitis B virus. Therefore, for primary liver cancer patients with previous history of hepatitis B, they should also pay attention to meal sharing and avoid sharing dishes, especially for patients with hepatitis B major and minor triplets. These patients not only need to keep the quantification of hepatitis B virus within a reasonable range, but also the people in contact with them should be vaccinated against hepatitis B in time to produce protective antibodies. In addition, hepatocellular liver cancer and cholangiocellular liver cancer, although not infectious to other people, can be transmitted within the patient’s own body, both by intrahepatic dissemination through the portal vein and by intra-abdominal implantation.