This study is informed by goal number four, target one of the Sustainable Development Goals (SDGs), on the increase of accessible, equitable, and quality primary and secondary education by 2030. The intended outcome of this goal cannot be achieved in Tanzania when juveniles who fall in conflict with the law are left out of the mainstream of education. The study utilized a cross-sectional design, which embraces the qualitative approach. Its data were obtained through purposeful sampling techniques (convenient and snowballing sampling), in which twenty-eighty respondents participated. The data collection techniques used were in-depth interviews and focus group discussions. The ATLAS.ti 9 software was employed during qualitative data analysis. The main findings reveal that the diversion programme effectively addresses juveniles' educational needs and mitigates associated stigma and retribution. Furthermore, it helps in amicably solving the juveniles' problem due to assessment of individual juveniles, generating suitable tailor-made interventions. Challenges obtained were that police officers still used much force during the arrest, and some would demand bribes; the traditional system was lengthy and cumbersome; there was a shortage of workforce and buildings; limited financial resources and equipment; and some juveniles and actors did not know the programme. The article concludes that the diversion programme is vital to achieving education for all as envisaged by the SDGs. It further recommends capacity building to all social actors on the importance of diversion, mobilization of resources, and researchers should be encouraged to conduct studies in JJA, in particular indigenous models and practice of the diversion programme.