There is a rare genetic disease that is inheritable, that causes liver cancer but it is very rare. Far more commonly, cirrhosis of the liver, scarring of the tissues, that is, is caused by alcohol excess and allows primary liver cancer to develop. Death can occurr in even quite young people who are alcoholics as the excess alcohol abuses the digestive function of the liver.
Another common cause of liver cancer is the presence of the infections Hepatitis B or C. This infection derives directly from engaging in unprotected sex. Sadly, the results are similar as far as cancerous growth is concerned to the liver.