Anti-HIV drugs work because they attack the HIV virus directly. The drugs may prevent the virus from making copies of itself.