We provide a framework to study the formation of financial networks and investigate the interplay between banks' lending incentives and the emergence of systemic risk. We show that under natural contracting assumptions, banks fail to internalize the implications of their lending decisions for...