Updated project metadata. Human myxovirus resistance 2 (MX2) can restrict HIV-1 and herpesviruses at a post-entry step through a process requiring an interaction between MX2 and the viral capsids. The involvement of other host cell factors, however, remains poorly understood. Here, we mapped the proximity interactome of MX2, revealing strong enrichment of phenylalanine-glycine (FG)-rich proteins related to the nuclear pore complex as well as proteins that are part of cytoplasmic ribonucleoprotein granules. MX2 interacted with these proteins to form multiprotein cytoplasmic biomolecular condensates that were essential for its anti-HIV-1 and anti-herpes simplex virus 1 (HSV-1) activity. MX2 condensate formation required the disordered N-terminal region and MX2 dimerization. Incoming HIV-1 and HSV-1 capsids associated with MX2 at these dynamic cytoplasmic biomolecular condensates, preventing nuclear entry of their viral genomes. Thus, MX2 forms cytoplasmic condensates that likely act as nuclear pore decoys, trapping capsids and inducing premature viral genome release to interfere with nuclear targeting of HIV-1 and HSV-1.