Tenofovir is an antiretroviral medication primarily used in the treatment of HIV and chronic hepatitis B. It belongs to a class of drugs known as nucleotide reverse transcriptase inhibitors (NRTIs) which work by blocking the reverse transcriptase enzyme, thereby preventing viral replication.