This article shows how underdeveloped financial markets in emerging economies can explain the pattern of two-way capital flows between emerging economies (such as China) and the developed world (such as the United States). Our calibrated model reproduces China's rising financial capital outflows and FDI inflows as well as its massive trade imbalances in recent decades. Our model also predicts that global trade imbalances may be sustainable even in the long run and the conventional wisdom that the ‘saving glut’ of emerging economies is responsible for the global low interest rate may be wrong.