This dissertation consists of three essays that aim to provide a deeper understanding of the consequences of financial globalization and macroeconomic fluctuations—for banks, firms, and households—by analyzing both micro-foundations and macroeconomic implications.The first chapter studies how globalization of banking systems has affected credit allocation and the macroeconomy. I provide a new theory of credit allocation in financial systems with both global and local banks, and tests it using cross-country loan-level data. I first point out that the traditional theory in banking and corporate finance of firm-bank sorting based on hard versus soft information does not explain the sorting patterns between firms and global versus local banks. ...