The combination of sofosbuvir and velpatasvir is used alone or with ribavirin (Copegus, Rebetol, Ribasphere) to treat chronic hepatitis C (an ongoing viral infection that damages the liver) in adults and children 6 years of age and older or who weigh at least 37 lbs (17 kg).