Population genomic analyses reveal the migration route and the molecular basis associated with adaptations to the nonnative range for an obligate fig wasp pollinating an invasive fig tree species.