Retroviruses (such as HIV) convert their RNA to DNA before replicating their genome.
HIV is a retrovirus.
Instead of carrying RNA-dependent RNA polymerase (RdRp), retroviruses carry reverse transcriptase. This is an RNA-dependent DNA polymerase (RdDp). Reverse transcriptase transcribes a DNA complement from the RNA strand in the host cell.
The viral DNA is integrated into the host genome using integrase. It is then replicated along with the host.