A defining feature of HIV-1 replication in macrophages is that viral assembly occurs at the limiting membrane of a compartment often named VCC (virus-containing compartments) that is connected to the extracellular medium. The newly formed viral progeny pinches of the membrane and accumulates in the lumen of the VCC. While HIV budding has been extensively studied, very little is known about how viral particles present in the lumen of VCC are released in the extracellular medium. Here we show that the actin dynamics are critical for this process by combining ultrastructural analyses, time-lapse microscopy and perturbations of the actin cytoskeleton. We found that jasplakinolide, which stabilizes actin fibres, inhibited viral release from HIV-1-infected macrophages, but not from infected HeLa cells. Furthermore, in jasplakinolide-treated macrophages, VCC became scattered and no longer co-localized with the integrin CD18, nor the phosphorylated form of the focal adhesion kinase PYK2. Inhibition of PYK2 activity in infected macrophages promoted intracellular retention of viral particles in VCC that were no longer connected to the plasma membrane. Finally, we stimulated the rapid release of viral particles from the VCC by subjecting infected macrophages to frustrated phagocytosis. As macrophages spread on IgG-coated glass surfaces, VCC rapidly migrated to the basal membrane and released their viral content in the extracellular medium, which required their association with CD18 and the actin cytoskeleton. These results highlight that VCC trafficking and virus release are intimately linked to the reorganization of the macrophage actin cytoskeleton in response to external physical cues, suggesting that it might be regulated in tissues by the mechanical stress to which these cells are exposed.