The hepatitis B vaccine is used to help prevent this disease in adults. This vaccine helps your body develop immunity to the disease, but will not treat an active infection you already have. Vaccination with hepatitis B vaccine is recommended for all adults who are at risk of getting hepatitis B.