M-tropic HIV-1 Env proteins mediate efficient infection of different forms of microglia, but induction of an inflammatory state inhibits infection. Here, ERVW-1 is linked to infection.