Hepatitis B is the most common serious liver infection. It is caused by the hepatitis B virus that attacks the liver.