Hepatitis B is a viral infection of the liver that is caused by the hepatitis B virus. It can be transferred through contact with blood and body fluids of an infected person. It causes the liver to swell and can lead to liver disease and liver cancer.