Provided are compounds and pharmaceutically acceptable salts thereof, their pharmaceutical compositions, their methods of preparation, and their use for treating viral infections mediated by a member of the retrovirus family of viruses such as the Human Immunodeficiency Virus (HIV).