The hepatitis B vaccine is a recombinant vaccine that provides immunity against HBV. It contains hepatitis B surface antigen (HBsAg), which stimulates the immune system to produce antibodies against the virus without causing disease. The vaccine is highly effective and is usually administered in a series of three or four shots over six months.