Ritonavir is used along with other medications to treat human immunodeficiency virus (HIV) infection. Ritonavir is in a class of medications called protease inhibitors. It works by decreasing the amount of HIV in the blood. Although ritonavir does not cure HIV, it may decrease your chance of developing acquired immunodeficiency syndrome (AIDS) and HIV-related illnesses such as serious infections or cancer. Taking these medications along with practicing safer sex and making other lifestyle changes may decrease the risk of transmitting the HIV virus to other people.