We study how poor domestic transport infrastructure shapes the distributional effects of integration with world markets. Exploiting India’s large-scale trade liberalization in the 1990s, together with a digitized road network, we find that reductions in input tariffs generate substantially larger manufacturing gains in districts with better access to international ports, accompanied by faster reallocation of workers out of agriculture and into manufacturing and producer services, and greater migration from more remote regions. We interpret these findings through a quantitative spatial model. A key mechanism is that manufacturing intermediates are more time-sensitive in transit than manufacturing output, leading to larger increases in the relative returns to manufacturing in districts with better port access. The model replicates our main empirical findings and reveals stark distributional inequalities from liberalization, with gains in real income, real wages, and real rents heavily skewed toward regions with better port access. Finally, a simultaneous highway expansion targeted at improving port connectivity eliminates these spatial inequalities in welfare gains while generating net aggregate benefits.