We examine the coexistence of banks and financial markets by studying a credit market where the qualities of investment projects are not observable and the investment decisions of entrepreneurs are not contractible. Standard banks can alleviate moral-hazard problems, while financial markets operated by investment banks can alleviate adverse-selection problems. In competition, standard banks are forced to increase repayments, since financial markets can attract the highest-quality borrowers. This, in turn, increases the share of shirkers and may make lending unprofitable for standard banks. The coexistence of financial markets and standard banks is socially inefficient. The same inefficiency may occur with the entrance of sophisticated banks, operating with a combination of rating and ongoing monitoring technologies.