Hepatitis B is a virus that attacks the liver. It can be passed through contact with blood or bodily fluids and can cause liver damage or cancer. Babies born to mothers with hepatitis B are at high risk of becoming carriers unless they receive shots at birth and later. The shots help babies develop antibodies to fight the virus and prevent chronic infection in up to 95% of cases. Sex partners and household members of infected individuals should also be tested and vaccinated if necessary. Hepatitis B can largely be prevented through vaccination.