Lamivudine is an antiretroviral medication used primarily in the treatment of HIV infection and chronic hepatitis B virus (HBV) infection. It belongs to the class of drugs known as nucleoside reverse transcriptase inhibitors (NRTIs).