A model of the domestic financial intermediation of foreign capital inflows based on agency costs is developed for studying financial crises in emerging markets. In equilibrium, the banking system becomes progressively more fragile under imperfect prudential regulation and public sector loan...