Cabotegravir is an antiretroviral medication used for treating and preventing HIV. It works by blocking an enzyme called HIV integrase, which stops the virus from replicating and spreading in the body. It can also be given as a long-acting injectable for HIV prevention in high-risk individuals.