Hepatitis B virus (HBV) vaccination has been part of the Expanded Programme of Immunization (EPI) in Tunisia since 1995. The aim of this study was to evaluate, for the first time, the impact of mass vaccination in Tunisia 17 years after this programme was implemented, and in parallel, assess the long-term persistence of anti-HBs antibody in the vaccinated Tunisian population. A total of 1422 students were recruited (703 vaccinated, 719 non-vaccinated). HBV seromarkers were checked. None of the students from either group had positive HBsAg. The overall prevalence of anti-HBc was 0·8%. A Significantly higher prevalence of anti-HBc was noted in unvaccinated students than in vaccinated (1·4% vs. 0·3%, P = 0·02). The overall seroprotection rate (anti-HBs titre ⩾10 mIU/ml) was 68·9% in vaccinated subjects. Seroprotection rates and geometric mean titres decreased significantly with increasing age, reflecting waning anti-HBs titre over time. No significant difference was detected between seroprotection rates and gender or students’ area of origin. Incomplete vaccination was the only factor associated with an anti-HBs titre <10 mIU/ml. This study demonstrates the excellent efficacy of the HBV vaccination programme in Tunisia 17 years after its launch. However, a significant decline of anti-HBs seroprotection has been observed in ⩾15-year-old adolescents which places them at risk of infection. Additional studies are needed in hyperendemic regions in Tunisia.