Hepatitis B and C are viral infections that primarily affect the liver. Hepatitis B (HBV) is caused by the hepatitis B virus, while hepatitis C (HCV) is caused by the hepatitis C virus. Both viruses are transmitted through contact with infected blood or bodily fluids.