This dissertation studies economic geography and international trade. It discusses topics on productivity spillovers, agglomeration economies, transportation infrastructure, labor market dynamics, economic growth, comparative advantage and machine learning. Chapter 1 measures productivity spillovers across cities by using the development of highspeed railways (HSR) in China as a natural experiment. HSR shortens inter-city passenger travel time, makes face-to-face communication easier and thus facilitates knowledge spillovers. I develop a dynamic spatial general equilibrium model that features intra- and international trade, frictional domestic migration and dynamics in labor markets. My structural estimation on the productivity spillover p...