Ribavirin is used in combination with other antiviral medications (such as interferon, sofosbuvir) to treat chronic (long-lasting) hepatitis C, a viral infection of the liver.