Following the availability of highly effective direct-acting antivirals (DAAs) to treat hepatitis C infection, the uptake of treatment by people living with hepatitis C rose dramatically in high- and middle-income countries but has since declined. To achieve the World Health Organization’s (WHO) 2030 target to eliminate hepatitis C as a public health threat among people who inject drugs, an increase in testing and treatment is required, together with improved coverage of harm reduction interventions. The population that remains to be treated in high- and middle-income countries with high hepatitis C prevalence are among the most socially disadvantaged, including people who inject drugs and are involved in the criminal justice system, a group with disproportionate hepatitis C prevalence, compared with people in the wider community. Imprisonment provides an unrivalled opportunity for screening and treating large numbers of people for hepatitis C, who may not access mainstream health services in the community. Despite some implementation challenges, evidence of the efficacy, acceptability, and cost-effectiveness of in-prison hepatitis treatment programs is increasing worldwide, and evaluations of these programs have demonstrated the capacity for treating people in high numbers. In this Perspective we argue that the scale-up of hepatitis C prevention, testing, and treatment programs in prisons, along with the investigation of new and adapted approaches, is critical to achieving WHO elimination goals in many regions; the Australian experience is highlighted as a case example. We conclude by discussing opportunities to improve access to prevention, testing, and treatment for people in prison and other justice-involved populations, including harnessing the changed practices brought about by the COVID-19 pandemic.